From 0d1fd550f52288d784fdf1295fab63ac97197c0a Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 3 Nov 2023 00:51:06 +0800 Subject: improve bpf test --- tests/projects/linux/bpf/minimal/xmake.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/projects/linux') diff --git a/tests/projects/linux/bpf/minimal/xmake.lua b/tests/projects/linux/bpf/minimal/xmake.lua index 8507b8aa1..ded118dfa 100644 --- a/tests/projects/linux/bpf/minimal/xmake.lua +++ b/tests/projects/linux/bpf/minimal/xmake.lua @@ -12,6 +12,11 @@ else add_requires("linux-headers") end +-- fix error: libbpf: map 'my_pid_map': unsupported map linkage static. for bpftool >= 7.2.0 +-- we cannot add `"-fvisibility=hidden"` when compiling *.bpf.c +-- @see https://github.com/libbpf/bpftool/issues/120 +set_symbols("none") + target("minimal") set_kind("binary") add_files("src/*.c") -- cgit v1.3.1