diff options
| author | ruki <[email protected]> | 2023-11-03 00:51:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-03 00:51:06 +0800 |
| commit | 0d1fd550f52288d784fdf1295fab63ac97197c0a (patch) | |
| tree | 642f3b65a4dd397e9c7ed907303220dbb128ce5d /tests/projects/linux | |
| parent | 8d73a80b51d05aa81b0aaf6da02824e33352ca57 (diff) | |
improve bpf test
Diffstat (limited to 'tests/projects/linux')
| -rw-r--r-- | tests/projects/linux/bpf/minimal/xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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") |
