mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
xinetd: use pkg-config for libtirpc flags
Instead of hardcoding the flags needed for libtirpc, use pkg-config. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
a2732e1b9d
commit
9daa5e3f55
@ -17,9 +17,9 @@ XINETD_CFLAGS = $(TARGET_CFLAGS)
|
|||||||
# flags (so this case 2 is implicit and not visible below)
|
# flags (so this case 2 is implicit and not visible below)
|
||||||
# 3. We don't have RPC support, pass -DNO_RPC to disable it
|
# 3. We don't have RPC support, pass -DNO_RPC to disable it
|
||||||
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
XINETD_DEPENDENCIES += libtirpc
|
XINETD_DEPENDENCIES += libtirpc host-pkgconf
|
||||||
XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
XINETD_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
|
||||||
XINETD_LIBS += -ltirpc
|
XINETD_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
|
||||||
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
|
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
|
||||||
XINETD_CFLAGS += -DNO_RPC
|
XINETD_CFLAGS += -DNO_RPC
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user