2014-01-28 13:07:02 +01:00
|
|
|
# This file sets some envvars to allow cross compiling packages.
|
|
|
|
|
|
|
|
[ -z "$CROSS_BUILD" ] && return 0
|
|
|
|
|
|
|
|
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"
|
2014-01-28 17:50:55 +01:00
|
|
|
|
|
|
|
if [ "$build_style" = "gnu-configure" -o -z "$build_style" ]; then
|
|
|
|
export configure_args+=" --host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE --with-libtool-sysroot=$XBPS_CROSS_BASE "
|
|
|
|
fi
|