hooks/pre-configure: don't overwrite PKG_CONFIG_* vars in the wrapper.
This may have side effects do other packages but it was needed to fix gnome-online-accounts for cross build. goa ships a subproject that uses this vars to link against it. This commit changes the pkg-config that it preserves values in PKG_CONFIG_* if set.
This commit is contained in:
parent
c5f921d19c
commit
66cdb281f1
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ pkgconfig_wrapper() {
|
|||
#!/bin/sh
|
||||
|
||||
export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
||||
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
|
||||
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
|
||||
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}"
|
||||
export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig\${PKG_CONFIG_LIBDIR:+:\${PKG_CONFIG_LIBDIR}}"
|
||||
exec /usr/bin/pkg-config "\$@"
|
||||
_EOF
|
||||
chmod 755 ${XBPS_WRAPPERDIR}/${XBPS_CROSS_TRIPLET}-pkg-config
|
||||
|
|
Loading…
Reference in a new issue