diff mbox

build: must honor pkg-config flags for libmnl

Message ID 1435564915-21929-1-git-send-email-jengelh@inai.de
State Accepted, archived
Delegated to: stephen hemminger
Headers show

Commit Message

Jan Engelhardt June 29, 2015, 8:01 a.m. UTC
The build otherwise fails if libmnl does not directly live in a
standard search path.
---
 tipc/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tipc/Makefile b/tipc/Makefile
index 4bda8c5..d4637f8 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -5,8 +5,11 @@  TIPCOBJ=bearer.o \
     node.o socket.o \
     tipc.o
 
+include ../Config
+
 TARGETS=tipc
-LDLIBS += -lmnl
+CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
+LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
 
 all: $(TARGETS) $(LIBS)