]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
build: must honor pkg-config flags for libmnl
authorJan Engelhardt <jengelh@inai.de>
Mon, 29 Jun 2015 08:01:55 +0000 (10:01 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 6 Jul 2015 21:50:58 +0000 (14:50 -0700)
The build otherwise fails if libmnl does not directly live in a
standard search path.

tipc/Makefile

index b3ef9b9d4026e024792a72871eabf7c6ab09e961..bc5ecfd37518749e23190a3464745ddfe7ccfdbd 100644 (file)
@@ -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