From c64d6bb8ba5382b14aebdb6ea40a84932de1b11b Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Sun, 26 Jul 2015 20:45:13 +0200 Subject: [PATCH] rpcbind: 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/rpcbind/rpcbind.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/rpcbind/rpcbind.mk b/package/rpcbind/rpcbind.mk index d879de1512..1e28af9e9a 100644 --- a/package/rpcbind/rpcbind.mk +++ b/package/rpcbind/rpcbind.mk @@ -11,7 +11,7 @@ RPCBIND_LICENSE = BSD-3c RPCBIND_LICENSE_FILES = COPYING RPCBIND_CONF_ENV += \ - CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/tirpc/" + CFLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`" RPCBIND_DEPENDENCIES += libtirpc host-pkgconf RPCBIND_CONF_OPTS += --with-rpcuser=root RPCBIND_CONF_OPTS += --with-systemdsystemunitdir=no -- 2.30.2