Skip to content

Commit

Permalink
tc, ip: more Makefile updates for LIBMNL
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
  • Loading branch information
shemminger committed Aug 9, 2017
1 parent 4a340fe commit 6ff66ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ ifeq ($(IP_CONFIG_SETNS),y)
CFLAGS += -DHAVE_SETNS
endif

ifeq ($(HAVE_MNL),y)
CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags)
LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
endif

ALLOBJ=$(IPOBJ) $(RTMONOBJ)
SCRIPTS=ifcfg rtpr routel routef
TARGETS=ip rtmon
Expand Down
5 changes: 5 additions & 0 deletions tc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ endif
TCOBJ += $(TCMODULES)
LDLIBS += -L. -lm

ifeq ($(HAVE_MNL),y)
CFLAGS += -DHAVE_LIBMNL $(shell $(PKG_CONFIG) libmnl --cflags)
LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
endif

ifeq ($(SHARED_LIBS),y)
LDLIBS += -ldl
LDFLAGS += -Wl,-export-dynamic
Expand Down

0 comments on commit 6ff66ac

Please sign in to comment.