]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
misc/Makefile: use PKG_CONFIG
authorAaro Koskinen <aaro.koskinen@nokia.com>
Tue, 17 Nov 2015 14:08:00 +0000 (16:08 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 23 Nov 2015 23:25:50 +0000 (15:25 -0800)
Use PKG_CONFIG from Config - it works better when cross-compiling.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
misc/Makefile

index 389c1b04afb9d6056a0becb7e8478b5e05bcd310..f50e7403a33b6a4f2e592ca566736b22344f2e09 100644 (file)
@@ -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)