diff options
author | David Miller <davem@davemloft.net> | 2017-12-19 15:22:03 -0500 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2017-12-20 00:15:05 +0100 |
commit | 19c832ed9b8f7b49fa5eeef06b4338af5fe5c1dc (patch) | |
tree | e6fce796b4dd5a097347c78905455743284bde34 /tools/testing/selftests/bpf/Makefile | |
parent | bpf: fix broken BPF selftest build on s390 (diff) | |
download | linux-dev-19c832ed9b8f7b49fa5eeef06b4338af5fe5c1dc.tar.xz linux-dev-19c832ed9b8f7b49fa5eeef06b4338af5fe5c1dc.zip |
bpf: Fix tools and testing build.
I'm getting various build failures on sparc64. The key is
usually that the userland tools get built 32-bit.
1) clock_gettime() is in librt, so that must be added to the link
libraries.
2) "sizeof(x)" must be printed with "%Z" printf prefix.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 792af7c3b74f..05fc4e2e7b3a 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -11,7 +11,7 @@ ifneq ($(wildcard $(GENHDR)),) endif CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include -LDLIBS += -lcap -lelf +LDLIBS += -lcap -lelf -lrt TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \ test_align test_verifier_log test_dev_cgroup |