diff mbox

[iproute] misc/Makefile: use PKG_CONFIG

Message ID 1447769280-11421-1-git-send-email-aaro.koskinen@nokia.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Koskinen, Aaro (Nokia - FI/Espoo) Nov. 17, 2015, 2:08 p.m. UTC
Use PKG_CONFIG from Config - it works better when cross-compiling.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
---
 misc/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

stephen hemminger Nov. 23, 2015, 11:26 p.m. UTC | #1
On Tue, 17 Nov 2015 16:08:00 +0200
Aaro Koskinen <aaro.koskinen@nokia.com> wrote:

> Use PKG_CONFIG from Config - it works better when cross-compiling.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>

Looks good, applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/misc/Makefile b/misc/Makefile
index 389c1b0..f50e740 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -10,8 +10,8 @@  ifeq ($(HAVE_BERKELEY_DB),y)
 endif
 
 ifeq ($(HAVE_SELINUX),y)
-	LDLIBS += $(shell pkg-config --libs libselinux)
-	CFLAGS += $(shell pkg-config --cflags libselinux) -DHAVE_SELINUX
+	LDLIBS += $(shell $(PKG_CONFIG) --libs libselinux)
+	CFLAGS += $(shell $(PKG_CONFIG) --cflags libselinux) -DHAVE_SELINUX
 endif
 
 ifeq ($(IP_CONFIG_SETNS),y)