diff options
author | 2023-10-13 14:51:33 -0400 | |
---|---|---|
committer | 2023-10-15 00:23:17 -0400 | |
commit | 7392a9387240d86af931b517178ff657453ac4d6 (patch) | |
tree | 68bab0e6a16e59f49e80bd18e8362c5181458b2b /wrappers | |
parent | make riscv targets use riscv portage arch (diff) | |
download | crossdev-7392a9387240d86af931b517178ff657453ac4d6.tar.gz crossdev-7392a9387240d86af931b517178ff657453ac4d6.tar.bz2 crossdev-7392a9387240d86af931b517178ff657453ac4d6.zip |
cross-pkg-config: Set PKG_CONFIG_FDO_SYSROOT_RULES=1
When cross-compiling, pkgconf behaves in a way that causes many packages
to install files to ${SYSROOT}/${SYSROOT}/... without
PKG_CONFIG_FDO_SYSROOT_RULES set.
I'm aware of at least gobject-introspection, modemmanager, and libp11,
but there are likely more.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'wrappers')
-rwxr-xr-x | wrappers/cross-pkg-config | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wrappers/cross-pkg-config b/wrappers/cross-pkg-config index ba4d3ac..eb4047f 100755 --- a/wrappers/cross-pkg-config +++ b/wrappers/cross-pkg-config @@ -95,6 +95,9 @@ fi export PKG_CONFIG_SYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR%/} PKG_CONFIG_ESYSROOT_DIR=${PKG_CONFIG_SYSROOT_DIR}${PREFIX} +# https://github.com/pkgconf/pkgconf/issues/205 +export PKG_CONFIG_FDO_SYSROOT_RULES=1 + # # Some distributions pollute the pkg-config environment. # Time to pull a captain planet on them. |