diff mbox

[PATCHv2,iproute2] tipc: make build conditional on having libmnl

Message ID 1435403751-17245-1-git-send-email-gustavo@zacarias.com.ar
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Gustavo Zacarias June 27, 2015, 11:15 a.m. UTC
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 tipc/Makefile | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/tipc/Makefile b/tipc/Makefile
index 4bda8c5..b3ef9b9 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -1,3 +1,6 @@ 
+include ../Config
+ifeq ($(HAVE_MNL),y)
+
 TIPCOBJ=bearer.o \
     cmdl.o link.o \
     media.o misc.o \
@@ -8,6 +11,8 @@  TIPCOBJ=bearer.o \
 TARGETS=tipc
 LDLIBS += -lmnl
 
+endif
+
 all: $(TARGETS) $(LIBS)
 
 tipc: $(TIPCOBJ)