xbps-src: create a <cross-target>-pkg-config wrapper when cross compiling.
This wrapper sets the env vars required for proper cross compiling, rather than always setting them.
This commit is contained in:
parent
80ebdaa055
commit
535117078c
2 changed files with 16 additions and 6 deletions
|
@ -6,10 +6,4 @@ if [ -z "$CHROOT_READY" ]; then
|
|||
PKG_CONFIG_PATH="${XBPS_MASTERDIR}/usr/lib/pkgconfig:${XBPS_MASTERDIR}/usr/share/pkgconfig"
|
||||
fi
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
|
||||
PKG_CONFIG_PATH="$XBPS_CROSS_BASE/lib/pkgconfig:$XBPS_CROSS_BASE/usr/share/pkgconfig"
|
||||
PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/lib/pkgconfig"
|
||||
fi
|
||||
|
||||
set +a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue