From 2b7edd7756cac51a04cf90799bd31e08e1b4b01f Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Sun, 26 Jul 2015 20:45:14 +0200 Subject: [PATCH] conntrack-tools: use pkg-config for libtirpc flags Instead of hardcoding the flags needed for libtirpc, use pkg-config. Signed-off-by: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- package/conntrack-tools/conntrack-tools.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/conntrack-tools/conntrack-tools.mk b/package/conntrack-tools/conntrack-tools.mk index c01501ae79..983f954980 100644 --- a/package/conntrack-tools/conntrack-tools.mk +++ b/package/conntrack-tools/conntrack-tools.mk @@ -15,8 +15,8 @@ CONNTRACK_TOOLS_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_LIBTIRPC),y) CONNTRACK_TOOLS_CONF_ENV += \ - CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/" -CONNTRACK_TOOLS_DEPENDENCIES += libtirpc + CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" +CONNTRACK_TOOLS_DEPENDENCIES += libtirpc host-pkgconf endif $(eval $(autotools-package)) -- 2.30.2