From b821a1dd9803cb058db8861da93a84108e2db22b Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 3 Oct 2016 15:41:23 +0200 Subject: [PATCH] Disables ld.gold on binutils < 2.26, resolves #2984 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 608f3f0af..f20251c36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,8 +126,8 @@ if(ENABLE_GOLD_LINKER) # Issue 2785: check gold binutils version and don't use gc-sections for versions prior 2.25 string(REGEX REPLACE ".*\\(GNU Binutils[^\\)0-9]+([0-9]+\\.[0-9]+)[^\\)]*\\).*" "\\1" GOLD_BINUTILS_VERSION "${LD_VERSION}") - if ("${GOLD_BINUTILS_VERSION}" VERSION_LESS "2.25") - message(STATUS "Disabling gc-sections on gold binutils < 2.25, see: https://sourceware.org/bugzilla/show_bug.cgi?id=17639") + if ("${GOLD_BINUTILS_VERSION}" VERSION_LESS "2.26") + message(STATUS "Disabling gc-sections on gold binutils < 2.26, see: https://sourceware.org/bugzilla/show_bug.cgi?id=17639") set(LD_AVOID_GC_SECTIONS TRUE) endif() else()