summaryrefslogtreecommitdiffstats
path: root/tipc
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2015-06-29 10:01:55 +0200
committerStephen Hemminger <shemming@brocade.com>2015-07-06 14:50:58 -0700
commita6ea668c91bd586ac54c7d56f83315ecd43f3c6a (patch)
tree1419e4286c19d2c14160b920cab4ec0d4b80fe20 /tipc
parentacfeb55a86c4d7a92b45a7bfdd4c1724cbb8af26 (diff)
build: must honor pkg-config flags for libmnl
The build otherwise fails if libmnl does not directly live in a standard search path.
Diffstat (limited to 'tipc')
-rw-r--r--tipc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tipc/Makefile b/tipc/Makefile
index b3ef9b9d..bc5ecfd3 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -8,8 +8,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)
endif