summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-08-07 11:43:21 -0700
committerStephen Hemminger <stephen@networkplumber.org>2017-08-07 12:01:49 -0700
commit7d23fa55913f6cfb1d2c50b7ccb184abc9b3b60e (patch)
treeeb30b54de998ae64393d23f218b6ece445badd5c /Makefile
parentd6a4076b6ba6547d7e52c377a7c58c56eb5ea16e (diff)
downloadiproute2-7d23fa55913f6cfb1d2c50b7ccb184abc9b3b60e.tar.gz
lib: fix extended ack with and without libmnl
The code was always building without libmnl support, so it was doing nothing. Fixes: b6432e68ac2f ("iproute: Add support for extended ack to rtnl_talk") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 18de7dcb..a4b0dea5 100644
--- a/Makefile
+++ b/Makefile
@@ -58,8 +58,13 @@ LIBNETLINK=../lib/libnetlink.a ../lib/libutil.a
LDLIBS += $(LIBNETLINK)
ifeq ($(HAVE_ELF),y)
-CFLAGS += -DHAVE_ELF
-LDLIBS += -lelf
+ CFLAGS += -DHAVE_ELF
+ LDLIBS += -lelf
+endif
+
+ifeq ($(HAVE_MNL),y)
+ CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags)
+ LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
endif
all: Config