From 5f1be2acf48d11d8bf234681986214d1ea126958 Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Sun, 8 Feb 2015 17:55:32 +0100 Subject: [PATCH] lmbench: use pkg-config to find libtirpc Signed-off-by: Fabio Porcedda Signed-off-by: Thomas Petazzoni --- package/lmbench/lmbench.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk index 63a83fd2e7..59e750c589 100644 --- a/package/lmbench/lmbench.mk +++ b/package/lmbench/lmbench.mk @@ -14,9 +14,9 @@ LMBENCH_CFLAGS = $(TARGET_CFLAGS) LMBENCH_LDLIBS = $(TARGET_LDFLAGS) ifeq ($(BR2_PACKAGE_LIBTIRPC),y) -LMBENCH_DEPENDENCIES += libtirpc -LMBENCH_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/ -LMBENCH_LDFLAGS += -ltirpc +LMBENCH_DEPENDENCIES += host-pkgconf libtirpc +LMBENCH_CFLAGS += $(shell $(PKG_CONFIG_HOST_BINARY) --cflags libtirpc) +LMBENCH_LDFLAGS += $(shell $(PKG_CONFIG_HOST_BINARY) --libs libtirpc) endif define LMBENCH_CONFIGURE_CMDS -- 2.30.2