diff options
| author | Anton Protopopov <[email protected]> | 2025-03-10 14:51:12 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-03-15 18:48:58 +0000 |
| commit | caa4237a790a986d668a83a48f0de7ab0069f9d8 (patch) | |
| tree | 5b83fd49376f7b4a4dcaecb2f868a5e135ee6581 /tools/bpf/bpftool/prog.c | |
| parent | Merge branch 'bpf-introduce-helper-for-populating-bpf_cpumask' (diff) | |
| download | kernel-caa4237a790a986d668a83a48f0de7ab0069f9d8.tar.gz kernel-caa4237a790a986d668a83a48f0de7ab0069f9d8.zip | |
selftests/bpf: Fix selection of static vs. dynamic LLVM
The Makefile uses the exit code of the `llvm-config --link-static --libs`
command to choose between statically-linked and dynamically-linked LLVMs.
The stdout and stderr of that command are redirected to /dev/null.
To redirect the output the "&>" construction is used, which might not be
supported by /bin/sh, which is executed by make for $(shell ...) commands.
On such systems the test will fail even if static LLVM is actually
supported. Replace "&>" by ">/dev/null 2>&1" to fix this.
Fixes: 2a9d30fac818 ("selftests/bpf: Support dynamically linking LLVM if static is not available")
Signed-off-by: Anton Protopopov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Daniel Xu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
