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 a6ea668c91)
This commit is contained in:
Jan Engelhardt 2015-06-29 10:01:55 +02:00 committed by Stephen Hemminger
parent 6b40ba172e
commit 0b60e8c016
1 changed files with 4 additions and 1 deletions

View 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