summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-04-22 12:37:15 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-04-23 19:16:46 +0000
commit6d1ea28aa3924aaa716bc9f1c7e467be00af87d4 (patch)
tree79b6f5779887020597467c57cc95a00ead3f836c /configure
parent8f3b2f9f02968328950170c1783968536176fd06 (diff)
make linkerSupportsFlag() use gold linker if detected
subsequent tests should depend on the detected linker, obviously. Change-Id: I09aa9f1f2ef789f0ae0829f9122211fc4e1ad518 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index b0c6ac0bc2..6b59a888d4 100755
--- a/configure
+++ b/configure
@@ -376,6 +376,9 @@ linkerSupportsFlag()
safe_flag=`shellEscape "$flag"`
lflags=$lflags,$safe_flag
done
+ if [ $CFG_USE_GOLD_LINKER = yes ]; then
+ lflags="-fuse-ld=gold $lflags"
+ fi
compilerSupportsFlag $compiler $lflags
}