nixpkgs/pkgs/build-support/pkg-config-wrapper
Alyssa Ross 801078806b pkg-config: always pass --static in static builds
By default, pkg-config output will not include Requires.private
dependencies (which specify dependencies that only apply when building
statically).  It will only do this when passed --static.  In
pkgsStatic, let's ensure pkg-config is always operating in static
mode, because pkgsStatic will ensure that any libraries pkg-config
might find will always be static, and so will always need their
Requires.private dependencies.

This is very useful for Meson builds, because otherwise Meson will
only pass --static to pkg-config if the dependency was explicitly
"static : true", which is not likely to be the case for most stuff
we're building.

An alternative proposal was to patch Meson to add a special
environment variable to force dependencies to be "static : true".  I
feel that the approach I've taken here is less invasive.
2021-12-02 16:11:43 -08:00
..
add-flags.sh pkg-config-wrapper: mangle PKG_CONFIG_PATH{,_FOR_BUILD} correctly 2021-05-18 00:13:27 +02:00
default.nix pkg-config: always pass --static in static builds 2021-12-02 16:11:43 -08:00
pkg-config-wrapper.sh pkg-config: always pass --static in static builds 2021-12-02 16:11:43 -08:00
setup-hook.sh pkgconf: Wrap with pkg-config-wrapper 2020-05-21 11:35:46 -04:00