From 6b8b12f123d7e54d015c2858092c0e3b657fc6c1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 28 Jan 2014 17:50:55 +0100 Subject: [PATCH] environment/0002-cross.sh: only pass cross configure_args in some cases. --- common/environment/0002-cross.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/environment/0002-cross.sh b/common/environment/0002-cross.sh index bfcec33a863..109bbfc80b3 100644 --- a/common/environment/0002-cross.sh +++ b/common/environment/0002-cross.sh @@ -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