From a2732e1b9d91a1cb276ebe17d5acf53f6a9356e8 Mon Sep 17 00:00:00 2001 From: Thomas De Schampheleire Date: Sun, 26 Jul 2015 20:45:16 +0200 Subject: [PATCH] quota: 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/quota/quota.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/quota/quota.mk b/package/quota/quota.mk index 332f42e772..5e5e637a9e 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)" -- 2.30.2