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