We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8509f62 commit de4773fCopy full SHA for de4773f
tools/testing/selftests/netfilter/Makefile
@@ -8,8 +8,11 @@ TEST_PROGS := nft_trans_stress.sh nft_fib.sh nft_nat.sh bridge_brouter.sh \
8
ipip-conntrack-mtu.sh conntrack_tcp_unreplied.sh \
9
conntrack_vrf.sh nft_synproxy.sh rpath.sh
10
11
-CFLAGS += $(shell pkg-config --cflags libmnl 2>/dev/null || echo "-I/usr/include/libmnl")
12
-LDLIBS = -lmnl
+HOSTPKG_CONFIG := pkg-config
+
13
+CFLAGS += $(shell $(HOSTPKG_CONFIG) --cflags libmnl 2>/dev/null)
14
+LDLIBS += $(shell $(HOSTPKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl)
15
16
TEST_GEN_FILES = nf-queue connect_close
17
18
include ../lib.mk
0 commit comments