diff options
author | Ryan Hill <rhill@gentoo.org> | 2013-05-15 05:42:09 +0000 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2013-05-15 05:42:09 +0000 |
commit | b70ac45d574039ce6980248522099ccd6d56c634 (patch) | |
tree | d9ee1bef3a507880cccc6f10685288761b170c89 /eclass/toolchain.eclass | |
parent | Fix metadata.xml (diff) | |
download | historical-b70ac45d574039ce6980248522099ccd6d56c634.tar.gz historical-b70ac45d574039ce6980248522099ccd6d56c634.tar.bz2 historical-b70ac45d574039ce6980248522099ccd6d56c634.zip |
Explicitly disable lto in 4.5 to stop configure from helpfully re-enabling it when libelf is present.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 04c07fe0e1ef..a2d7113aa09e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.589 2013/05/15 00:56:49 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.590 2013/05/15 05:42:09 dirtyepic Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1100,7 +1100,11 @@ gcc_do_configure() { confgcc+=" --without-ppl" fi - tc_version_is_at_least "4.6" && confgcc+=" $(use_enable lto)" + if tc_version_is_at_least "4.6" ; then + confgcc+=" $(use_enable lto)" + elif tc_version_is_at_least "4.5" ; then + confgcc+=" --disable-lto" + fi case $(tc-is-softfloat) in yes) confgcc+=" --with-float=soft" ;; |