summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-02-15 22:58:07 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-02-25 13:55:44 +0000
commit53e2db74dba8135bd88bad48fbf9f2fc81ed4f8b (patch)
treee7f3cfb07469a4739c8eb994c398d8539f39d282 /configure
parent85712bae5b4ef8f43c697883130f189f20c8b8ea (diff)
configure: fix gold linker support detection
While the -fuse-ld=gold flag is related to linking, it is an argument to the compiler driver to tell it what linker to execute, NOT an option to tell the linker to behave differently. So it shouldn't get prefixed with -Wl when passed though the compiler driver. Change-Id: I2b50cb6d2bd8911aa9b305cd8e755d4dfe923041 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 043d9fc0d6..987d7f0f55 100755
--- a/configure
+++ b/configure
@@ -3263,7 +3263,7 @@ fi
# auto-detect -fuse-ld=gold support
if [ "$CFG_USE_GOLD_LINKER" != "no" ]; then
- if linkerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
+ if compilerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
CFG_USE_GOLD_LINKER=yes
else
if [ "$CFG_USE_GOLD_LINKER" = "yes" ]; then