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 <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas De Schampheleire 2015-07-26 20:45:14 +02:00 committed by Thomas Petazzoni
parent c64d6bb8ba
commit 2b7edd7756

View File

@ -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))