From: Jan Engelhardt Date: Mon, 29 Jun 2015 08:01:55 +0000 (+0200) Subject: build: must honor pkg-config flags for libmnl X-Git-Tag: v4.1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b60e8c01643f4bcaa7da0f32e9fe5faea2a0f62;p=thirdparty%2Fiproute2.git build: must honor pkg-config flags for libmnl The build otherwise fails if libmnl does not directly live in a standard search path. (cherry picked from commit a6ea668c91bd586ac54c7d56f83315ecd43f3c6a) --- diff --git a/tipc/Makefile b/tipc/Makefile index b3ef9b9d4..bc5ecfd37 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