From: Thomas De Schampheleire Date: Sun, 26 Jul 2015 18:45:14 +0000 (+0200) Subject: conntrack-tools: use pkg-config for libtirpc flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b7edd7756cac51a04cf90799bd31e08e1b4b01f;p=buildroot.git 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 --- 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))