commit:     8351d68720781cd2037a223d3bf5401263d88bc8
Author:     Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 21 19:11:16 2016 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Thu Jul 21 19:12:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8351d687

gnatbuild-r1.eclass: update to disable lto in gnat-gcc build

Fixes bug 586538.

 eclass/gnatbuild-r1.eclass | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/eclass/gnatbuild-r1.eclass b/eclass/gnatbuild-r1.eclass
index 0a53043..815345a 100644
--- a/eclass/gnatbuild-r1.eclass
+++ b/eclass/gnatbuild-r1.eclass
@@ -608,11 +608,8 @@ gnatbuild-r1_src_compile() {
                                        confgcc="${confgcc} --disable-nls"
                                fi
 
-                               if tc_version_is_at_least 4.6 ; then
-                                       confgcc="${confgcc} --enable-lto"
-                               else
-                                       confgcc="${confgcc} --disable-lto"
-                               fi
+                               # bug 586538: extra lto-wrapper dorks up system 
gcc
+                               confgcc="${confgcc} --disable-lto"
 
                                # setup multilib abi stuff
                                gcc-multilib-configure

Reply via email to