aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2023-10-13 14:51:33 -0400
committerMatt Turner <mattst88@gentoo.org>2023-10-15 00:23:17 -0400
commit7392a9387240d86af931b517178ff657453ac4d6 (patch)
tree68bab0e6a16e59f49e80bd18e8362c5181458b2b /wrappers
parentmake riscv targets use riscv portage arch (diff)
downloadcrossdev-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-xwrappers/cross-pkg-config3
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.