aboutsummaryrefslogtreecommitdiff
path: root/package/xinetd
diff options
context:
space:
mode:
authorGravatar Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>2015-07-26 20:45:17 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-26 21:49:48 +0200
commit9daa5e3f5570ab4d2f075ca42bfaa82d57db61a1 (patch)
treeed9468d490996df7904150d88dd50bd93d8c456d /package/xinetd
parenta2732e1b9d91a1cb276ebe17d5acf53f6a9356e8 (diff)
downloadbuildroot-9daa5e3f5570ab4d2f075ca42bfaa82d57db61a1.tar.gz
buildroot-9daa5e3f5570ab4d2f075ca42bfaa82d57db61a1.tar.bz2
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>
Diffstat (limited to 'package/xinetd')
-rw-r--r--package/xinetd/xinetd.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/xinetd/xinetd.mk b/package/xinetd/xinetd.mk
index 92d0d5398e..98185122ce 100644
--- a/package/xinetd/xinetd.mk
+++ b/package/xinetd/xinetd.mk
@@ -17,9 +17,9 @@ XINETD_CFLAGS = $(TARGET_CFLAGS)
# 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
+XINETD_DEPENDENCIES += libtirpc host-pkgconf
+XINETD_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+XINETD_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
else ifeq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),)
XINETD_CFLAGS += -DNO_RPC
endif