1 |
vapier 11/10/31 01:12:33 |
2 |
|
3 |
Modified: toolchain.eclass |
4 |
Log: |
5 |
use tc_version_is_at_least rather than parsing GCC_BRANCH_VER for lto handling |
6 |
|
7 |
Revision Changes Path |
8 |
1.477 eclass/toolchain.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.477&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.477&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.476&r2=1.477 |
13 |
|
14 |
Index: toolchain.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
17 |
retrieving revision 1.476 |
18 |
retrieving revision 1.477 |
19 |
diff -u -r1.476 -r1.477 |
20 |
--- toolchain.eclass 31 Oct 2011 01:10:49 -0000 1.476 |
21 |
+++ toolchain.eclass 31 Oct 2011 01:12:33 -0000 1.477 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2011 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.476 2011/10/31 01:10:49 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.477 2011/10/31 01:12:33 vapier Exp $ |
27 |
# |
28 |
# Maintainer: Toolchain Ninjas <toolchain@g.o> |
29 |
|
30 |
@@ -1290,8 +1290,11 @@ |
31 |
# LTO support was added in 4.5, which depends upon elfutils. This allows |
32 |
# users to enable that option, and pull in the additional library. In 4.6, |
33 |
# the dependency is no longer required. |
34 |
- [[ ${GCC_BRANCH_VER} == 4.5 ]] && confgcc+=" $(use_enable lto)" |
35 |
- [[ ${GCC_BRANCH_VER} > 4.5 ]] && confgcc+=" --enable-lto" |
36 |
+ if tc_version_is_at_least "4.6" ; then |
37 |
+ confgcc+=" --enable-lto" |
38 |
+ elif tc_version_is_at_least "4.5" ; then |
39 |
+ confgcc+=" $(use_enable lto)" |
40 |
+ fi |
41 |
|
42 |
[[ $(tc-is-softfloat) == "yes" ]] && confgcc+=" --with-float=soft" |
43 |
[[ $(tc-is-hardfloat) == "yes" ]] && confgcc+=" --with-float=hard" |