Permalink
Browse files

Updated Makefile

The previous makefile did not work properly in the event that the system
would contain multiple versions of libnl. For instance libnl-2.0 with
any libnl-3.x
  • Loading branch information...
1 parent ac337c0 commit 0de58131cbabf5c47afbf738ef8cb7d991d98266 @jlopex jlopex committed Aug 14, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 wmediumd/Makefile
View
@@ -11,21 +11,21 @@ ifeq ($(NL2FOUND),Y)
CFLAGS += -DCONFIG_LIBNL20
LDFLAGS += -lnl-genl
NLLIBNAME = libnl-2.0
-endif
-
+else
ifeq ($(NL3xFOUND),Y)
# libnl 3.2 might be found as 3.2 and 3.0
NL3FOUND = N
CFLAGS += -DCONFIG_LIBNL30
LDFLAGS += -lnl-genl-3
NLLIBNAME = libnl-3.0
-endif
-
+else
ifeq ($(NL3FOUND),Y)
CFLAGS += -DCONFIG_LIBNL30
LDFLAGS += -lnl-genl
NLLIBNAME = libnl-3.0
endif
+endif
+endif
# nl-3.1 has a broken libnl-gnl-3.1.pc file
# as show by pkg-config --debug --libs --cflags --exact-version=3.1 libnl-genl-3.1;echo $?

0 comments on commit 0de5813

Please sign in to comment.