From: Maxim Kuvyrkov Date: Wed, 4 Nov 2015 13:52:34 +0000 (+0100) Subject: Fix detection of GNU LD version in GCC's scripts X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc5b1103bdedf74815c680b027bb8f83c6ef37ee;p=thirdparty%2Fbinutils-gdb.git Fix detection of GNU LD version in GCC's scripts GCC's configure scripts are confused by YYYY.MM format of Linaro releases and mistake YYYY for major version (currently 2) and MM for minor version (currently 25). This, in turn, makes GCC think that GNU LD doesn't support plugins, which disables -fuse-linker-plugin functionality used by LTO. This problem was already fixed before, and there is a comment about avoiding "." in the BFD_VERSION_STRING, but, for reasons I can't explain, the problem occurred again. So fixing it ... again. --- diff --git a/bfd/version.h b/bfd/version.h index 2d0da9b4854..de5245179c8 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -4,5 +4,5 @@ and we need to be very careful to not break them. So far it seems that appending Linaro-specific version at the end is fine so long as it doesn't contain any dots ".". */ -#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ " Linaro 2015.10" +#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ " Linaro 2015_10" #define REPORT_BUGS_TO @report_bugs_to@