summaryrefslogtreecommitdiffstats
path: root/config.tests/unix
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-13 11:55:39 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-14 02:48:35 +0100
commitc954bf8b91bb0e7bc7ce4eb8cecca1331766b051 (patch)
treea45a841d3008d58e38dc4a717c1e7f122a4c4a6f /config.tests/unix
parente0fd9b5b06dd8f8c00d67621656b0f591b1f14bc (diff)
Fix host endian detection when compiling with sysroot
Apply the sysroot argument for the endian test only for the test used for detecting the target endianness, don't use --sysroot for the host detection. Change-Id: I53edda6ebfd06e73cc64f2561b707bd2ba052ae7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'config.tests/unix')
-rwxr-xr-xconfig.tests/unix/endian.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.tests/unix/endian.test b/config.tests/unix/endian.test
index 2985fd8241..6c5c311888 100755
--- a/config.tests/unix/endian.test
+++ b/config.tests/unix/endian.test
@@ -4,13 +4,14 @@ QMKSPEC=$1
VERBOSE=$2
SRCDIR=$3
OUTDIR=$4
+QMFLAGS=$5
# debuggery
[ "$VERBOSE" = "yes" ] && echo "Determining machine byte-order... ($*)"
# build and run a test program
test -d "$OUTDIR/config.tests/unix/endian" || mkdir -p "$OUTDIR/config.tests/unix/endian"
-"$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "QT_BUILD_TREE=$OUTDIR" "QMAKE_LFLAGS+=$SYSROOT_FLAG" "$SRCDIR/config.tests/unix/endian/endiantest.pro" -o "$OUTDIR/config.tests/unix/endian/Makefile" >/dev/null 2>&1
+"$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "QT_BUILD_TREE=$OUTDIR" $QMFLAGS "$SRCDIR/config.tests/unix/endian/endiantest.pro" -o "$OUTDIR/config.tests/unix/endian/Makefile" >/dev/null 2>&1
cd "$OUTDIR/config.tests/unix/endian"