Use the correct pkg-config version consistently.
Note: For quick&dirty cross compilation I used the following in .config:
PKG_CONFIG = false
NLLIBNAME = libnl-1
LIBS += -L../libnl-1.1/lib -lnl
CFLAGS += -I../libnl-1.1/include
CC := arm-linux-gcc
Signed-off-by: Johannes Stezenbach <js@sig21.net>
$(error Cannot find development files for any supported version of libnl)
endif
-LIBS += $(shell pkg-config --libs $(NLLIBNAME))
-CFLAGS += $(shell pkg-config --cflags $(NLLIBNAME))
+LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME))
+CFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME))
ifeq ($(V),1)
Q=