]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: use PKG_CONFIG variable consistently
authorJohannes Stezenbach <js@sig21.net>
Tue, 10 Nov 2009 17:29:34 +0000 (18:29 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 10 Nov 2009 21:54:06 +0000 (22:54 +0100)
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>
Makefile

index 68bef4d38f1c61a84c272b394ad23348967a9b43..1174130f21fdf74cf2047db8668fe4bc60b213de 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,8 @@ ifeq ($(NLLIBNAME),)
 $(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=