diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-07 11:43:21 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-07 12:01:49 -0700 |
commit | 7d23fa55913f6cfb1d2c50b7ccb184abc9b3b60e (patch) | |
tree | eb30b54de998ae64393d23f218b6ece445badd5c /Makefile | |
parent | d6a4076b6ba6547d7e52c377a7c58c56eb5ea16e (diff) | |
download | iproute2-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-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |