Skip to content

Commit

Permalink
selftests/bpf: Override PKG_CONFIG for static builds
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Akihiko Odaki authored and Andrii Nakryiko committed Nov 29, 2023
1 parent 2ce344b commit 18f6f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 18f6f9d

Please sign in to comment.