From 7392a9387240d86af931b517178ff657453ac4d6 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 13 Oct 2023 14:51:33 -0400 Subject: 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 --- wrappers/cross-pkg-config | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.3-65-gdbad