Skip to content

Commit 18f6f9d

Browse files
akihikodakianakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 2ce344b commit 18f6f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ In case of linker errors when running selftests, try using static linking:
7777

7878
.. code-block:: console
7979
80-
$ LDLIBS=-static vmtest.sh
80+
$ LDLIBS=-static PKG_CONFIG='pkg-config --static' vmtest.sh
8181
8282
.. note:: Some distros may not support static linking.
8383

0 commit comments

Comments
 (0)