Respect the PKG_CONFIG environment variable when building#3928
Respect the PKG_CONFIG environment variable when building#3928hugovk merged 1 commit intopython-pillow:masterfrom chewi:master
Conversation
This variable is commonly used by other build systems and using it can help with cross-compiling. Falls back to "pkg-config" as before.
|
Just to clarify: this has been used in Gentoo for a while. |
|
It's pretty straightforward, it falls back to the old behaviour, we've had it in Gentoo a while, and your CI has (almost) passed. I think we're good. 😄 |
|
@hugovk @radarhere OK if I merge this? |
|
Fine by me. Is there some documentation on the PKG_CONFIG environment variable? From a quick search I could only find PKG_CONFIG_PATH. |
|
The latter is how to control pkg-config, i.e. where it looks for it's stuff. The former is how a build system picks up which pkg-config or replacement executable, which is a feature of the build systems. The Linux kernel does it: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/build/feature/Makefile#n72 Others are probably doing the same. CMake has a different variable for the same purpose, but also looks ok PKG_CONFIG as a hint: https://cmake.org/cmake/help/latest/module/FindPkgConfig.html#variables-affecting-behavior |
This variable is commonly used by other build systems and using it can help with cross-compiling. Falls back to
pkg-configas before.