0006-configure-fix-gold-linker-support-detection.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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
  5. Submitted upstream: https://bugreports.qt.io/browse/QTBUG-44487
  6. While the -fuse-ld=gold flag is related to linking, it is an argument to the
  7. compiler driver to tell it what linker to execute, NOT an option to tell the
  8. linker to behave differently.
  9. So it shouldn't get prefixed with -Wl when passed though the compiler driver.
  10. Fixes http://autobuild.buildroot.net/results/92c/92c3fb4ddb934115b228652bb8c972bb7459bb40/
  11. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  12. ---
  13. configure | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/configure b/configure
  16. index 043d9fc..987d7f0 100755
  17. --- a/configure
  18. +++ b/configure
  19. @@ -3263,7 +3263,7 @@ fi
  20. # auto-detect -fuse-ld=gold support
  21. if [ "$CFG_USE_GOLD_LINKER" != "no" ]; then
  22. - if linkerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
  23. + if compilerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then
  24. CFG_USE_GOLD_LINKER=yes
  25. else
  26. if [ "$CFG_USE_GOLD_LINKER" = "yes" ]; then
  27. --
  28. 2.1.3