From a6ea668c91bd586ac54c7d56f83315ecd43f3c6a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 29 Jun 2015 10:01:55 +0200 Subject: [PATCH] build: must honor pkg-config flags for libmnl 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 --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