0001-tipc-make-build-conditional-on-having-libmnl.patch 723 B

123456789101112131415161718192021222324252627282930313233
  1. From db17dd9728b77485f26abb1ac5fcda65130f4a8d Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Sat, 27 Jun 2015 08:08:51 -0300
  4. Subject: [PATCHv2 iproute2] tipc: make build conditional on having libmnl
  5. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  6. ---
  7. tipc/Makefile | 5 +++++
  8. 1 file changed, 5 insertions(+)
  9. diff --git a/tipc/Makefile b/tipc/Makefile
  10. index 4bda8c5..b3ef9b9 100644
  11. --- a/tipc/Makefile
  12. +++ b/tipc/Makefile
  13. @@ -1,3 +1,6 @@
  14. +include ../Config
  15. +ifeq ($(HAVE_MNL),y)
  16. +
  17. TIPCOBJ=bearer.o \
  18. cmdl.o link.o \
  19. media.o misc.o \
  20. @@ -8,6 +11,8 @@ TIPCOBJ=bearer.o \
  21. TARGETS=tipc
  22. LDLIBS += -lmnl
  23. +endif
  24. +
  25. all: $(TARGETS) $(LIBS)
  26. tipc: $(TIPCOBJ)
  27. --
  28. 2.3.6