mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-04 08:57:44 +00:00
xinetd: add support to use RPC support from libtirpc
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
f2b3a19896
commit
e2b8a97603
@ -9,10 +9,25 @@ XINETD_SITE = http://www.xinetd.org
|
|||||||
XINETD_LICENSE = xinetd license
|
XINETD_LICENSE = xinetd license
|
||||||
XINETD_LICENSE_FILES = COPYRIGHT
|
XINETD_LICENSE_FILES = COPYRIGHT
|
||||||
|
|
||||||
ifneq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),y)
|
XINETD_CFLAGS = $(TARGET_CFLAGS)
|
||||||
XINETD_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DNO_RPC"
|
|
||||||
|
# Three cases here:
|
||||||
|
# 1. We have libtirpc, use it by passing special flags
|
||||||
|
# 2. We have native RPC support, use it, no need to pass special
|
||||||
|
# flags (so this case 2 is implicit and not visible below)
|
||||||
|
# 3. We don't have RPC support, pass -DNO_RPC to disable it
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
|
XINETD_DEPENDENCIES += libtirpc
|
||||||
|
XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
||||||
|
XINETD_LIBS += -ltirpc
|
||||||
|
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
|
||||||
|
XINETD_CFLAGS += -DNO_RPC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
XINETD_CONF_ENV += \
|
||||||
|
CFLAGS="$(XINETD_CFLAGS)" \
|
||||||
|
LIBS="$(XINETD_LIBS)"
|
||||||
|
|
||||||
XINETD_MAKE_OPT = AR="$(TARGET_AR)"
|
XINETD_MAKE_OPT = AR="$(TARGET_AR)"
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user