1 From 6e750053cd6d183173a4c39f2b1080b3c9814d76 Mon Sep 17 00:00:00 2001
2 From: Peter Korsgaard <peter@korsgaard.com>
3 Date: Sun, 15 Feb 2015 22:58:07 +0100
4 Subject: [PATCH] configure: fix gold linker support detection
6 Submitted upstream: https://bugreports.qt.io/browse/QTBUG-44487
8 While the -fuse-ld=gold flag is related to linking, it is an argument to the
9 compiler driver to tell it what linker to execute, NOT an option to tell the
10 linker to behave differently.
12 So it shouldn't get prefixed with -Wl when passed though the compiler driver.
14 Fixes http://autobuild.buildroot.net/results/92c/92c3fb4ddb934115b228652bb8c972bb7459bb40/
16 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 diff --git a/configure b/configure
22 index 043d9fc..987d7f0 100755
25 @@ -3263,7 +3263,7 @@ fi
27 # auto-detect -fuse-ld=gold support
28 if [ "$CFG_USE_GOLD_LINKER" != "no" ]; then
29 - if linkerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
30 + if compilerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
31 CFG_USE_GOLD_LINKER=yes
33 if [ "$CFG_USE_GOLD_LINKER" = "yes" ]; then