aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-11-25 17:42:51 +0900
committerAndrii Nakryiko <andrii@kernel.org>2023-11-28 22:15:29 -0800
commit18f6f9de98d1d0f7040e6e6c39fce8939f55520f (patch)
treefbf3c868350fef8bbf5d167b133d499a9d348fa1
parentselftests/bpf: Choose pkg-config for the target (diff)
downloadwireguard-linux-18f6f9de98d1d0f7040e6e6c39fce8939f55520f.tar.xz
wireguard-linux-18f6f9de98d1d0f7040e6e6c39fce8939f55520f.zip
selftests/bpf: Override PKG_CONFIG for static builds
A library may need to depend on additional archive files for static builds so pkg-config should be instructed to list them. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20231125084253.85025-3-akihiko.odaki@daynix.com
-rw-r--r--tools/testing/selftests/bpf/README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst
index cb9b95702ac6..9af79c7a9b58 100644
--- a/tools/testing/selftests/bpf/README.rst
+++ b/tools/testing/selftests/bpf/README.rst
@@ -77,7 +77,7 @@ In case of linker errors when running selftests, try using static linking:
.. code-block:: console
- $ LDLIBS=-static vmtest.sh
+ $ LDLIBS=-static PKG_CONFIG='pkg-config --static' vmtest.sh
.. note:: Some distros may not support static linking.