Skip to content

Commit

Permalink
Updated Makefile
Browse files Browse the repository at this point in the history
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
jlopex committed Aug 14, 2012
1 parent ac337c0 commit 0de5813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wmediumd/Makefile
Expand Up @@ -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 $?
Expand Down

0 comments on commit 0de5813

Please sign in to comment.