environment/0002-cross.sh: only pass cross configure_args in some cases.
This commit is contained in:
parent
e4dfdfcd78
commit
6b8b12f123
1 changed files with 4 additions and 1 deletions
|
@ -5,4 +5,7 @@
|
|||
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 configure_args+=" --host=$XBPS_CROSS_TRIPLET --with-sysroot=$XBPS_CROSS_BASE --with-libtool-sysroot=$XBPS_CROSS_BASE "
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue