mirror of
https://github.com/torvalds/linux
synced 2024-10-01 17:00:41 +00:00
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
This commit is contained in:
parent
2ce344b689
commit
18f6f9de98
|
@ -77,7 +77,7 @@ In case of linker errors when running selftests, try using static linking:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ LDLIBS=-static vmtest.sh
|
$ LDLIBS=-static PKG_CONFIG='pkg-config --static' vmtest.sh
|
||||||
|
|
||||||
.. note:: Some distros may not support static linking.
|
.. note:: Some distros may not support static linking.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue