Skip to content

Commit 323e146

Browse files
author
Martin KaFai Lau
committed
Merge branch 'bpf-next/master' into for-next
Signed-off-by: Martin KaFai Lau <[email protected]>
2 parents 54d8ab0 + 35ec1cd commit 323e146

File tree

8 files changed

+723
-55
lines changed

8 files changed

+723
-55
lines changed

tools/testing/selftests/bpf/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ CFLAGS += -g $(OPT_FLAGS) -rdynamic \
4141
LDFLAGS += $(SAN_LDFLAGS)
4242
LDLIBS += $(LIBELF_LIBS) -lz -lrt -lpthread
4343

44+
LDLIBS += $(shell $(PKG_CONFIG) --libs libpcap 2>/dev/null)
45+
CFLAGS += $(shell $(PKG_CONFIG) --cflags libpcap 2>/dev/null)
46+
CFLAGS += $(shell $(PKG_CONFIG) --exists libpcap 2>/dev/null && echo "-DTRAFFIC_MONITOR=1")
47+
4448
# The following tests perform type punning and they may break strict
4549
# aliasing rules, which are exploited by both GCC and clang by default
4650
# while optimizing. This can lead to broken programs.

0 commit comments

Comments
 (0)