summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/objcopy.test
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-03 10:03:26 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-03 18:59:09 +0100
commit19f4b47b453ab9b9c6e05128ab8b1852e349c398 (patch)
treee573839aaa85af2a5c25ae40e4b309b5dcb0cf43 /config.tests/unix/objcopy.test
parentb184dd0a01fda019d5a0960f6d074b6391dba655 (diff)
Improve sysroot handling with regards to configure tests.
Some configure tests try to link programs, which when compiling against a sysroot _does_ require the --sysroot= argument in order to find crt0.o. This patch uses the existing pattern of using the export SYSROOT_FLAG in the missing linking tests. Change-Id: I063849c814f393d5f88de1b486ce9035b9f7bf65 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'config.tests/unix/objcopy.test')
-rwxr-xr-xconfig.tests/unix/objcopy.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/unix/objcopy.test b/config.tests/unix/objcopy.test
index e2051a7823..9eb6e22ab0 100755
--- a/config.tests/unix/objcopy.test
+++ b/config.tests/unix/objcopy.test
@@ -8,7 +8,7 @@ VERBOSE=$3
if [ -n "$QMAKE_OBJCOPY" ]; then
echo "int main() { return 0; }" > objcopy_test.cpp
- if $TEST_PATH/which.test "$QMAKE_OBJCOPY" >/dev/null 2>&1 && $COMPILER -g -o objcopy_test objcopy_test.cpp >/dev/null 2>&1; then
+ if $TEST_PATH/which.test "$QMAKE_OBJCOPY" >/dev/null 2>&1 && $COMPILER $SYSROOT_FLAG -g -o objcopy_test objcopy_test.cpp >/dev/null 2>&1; then
"$QMAKE_OBJCOPY" --only-keep-debug objcopy_test objcopy_test.debug >/dev/null 2>&1 \
&& "$QMAKE_OBJCOPY" --strip-debug objcopy_test >/dev/null 2>&1 \
&& "$QMAKE_OBJCOPY" --add-gnu-debuglink=objcopy_test.debug objcopy_test >/dev/null 2>&1 \