[Buildroot] [git commit] quota: use pkg-config for libtirpc flags

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jul 26 19:49:36 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=a2732e1b9d91a1cb276ebe17d5acf53f6a9356e8
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Instead of hardcoding the flags needed for libtirpc, use pkg-config.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/quota/quota.mk |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/quota/quota.mk b/package/quota/quota.mk
index 332f42e..5e5e637 100644
--- a/package/quota/quota.mk
+++ b/package/quota/quota.mk
@@ -19,9 +19,9 @@ QUOTA_LIBS += -lintl
 endif
 
 ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
-QUOTA_DEPENDENCIES += libtirpc
-QUOTA_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
-QUOTA_LIBS += -ltirpc
+QUOTA_DEPENDENCIES += libtirpc host-pkgconf
+QUOTA_CFLAGS += "`$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`"
+QUOTA_LIBS += "`$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`"
 endif
 
 QUOTA_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) CFLAGS="$(QUOTA_CFLAGS) -D_GNU_SOURCE" LIBS="$(QUOTA_LIBS)"


More information about the buildroot mailing list