Gentoo Archives: gentoo-commits

From: "Mark Loeser (halcy0n)" <halcy0n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass
Date: Sat, 24 Apr 2010 23:53:19
Message-Id: 20100424235314.8ED192C04C@corvid.gentoo.org
1 halcy0n 10/04/24 23:53:14
2
3 Modified: toolchain.eclass
4 Log:
5 Add in lto use flag, and cleaning up of python scripts for gcc-4.5
6
7 Revision Changes Path
8 1.424 eclass/toolchain.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?rev=1.424&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?rev=1.424&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.423&r2=1.424
13
14 Index: toolchain.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
17 retrieving revision 1.423
18 retrieving revision 1.424
19 diff -u -r1.423 -r1.424
20 --- toolchain.eclass 23 Apr 2010 18:58:06 -0000 1.423
21 +++ toolchain.eclass 24 Apr 2010 23:53:14 -0000 1.424
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 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.423 2010/04/23 18:58:06 armin76 Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.424 2010/04/24 23:53:14 halcy0n Exp $
27 #
28 # Maintainer: Toolchain Ninjas <toolchain@g.o>
29
30 @@ -159,6 +159,7 @@
31 tc_version_is_at_least "4.2" && IUSE="${IUSE} openmp"
32 tc_version_is_at_least "4.3" && IUSE="${IUSE} fixed-point"
33 tc_version_is_at_least "4.4" && IUSE="${IUSE} graphite"
34 + tc_version_is_at_least "4.5" && IUSE="${IUSE} lto"
35 fi
36 fi
37
38 @@ -1351,6 +1352,11 @@
39 tc_version_is_at_least "4.4" && \
40 confgcc="${confgcc} $(use_with graphite ppl) $(use_with graphite cloog)"
41
42 + # lto support was added in 4.5, which depends upon elfutils. This allows
43 + # users to enable that option, and pull in the additional library
44 + tc_version_is_at_least "4.5" && \
45 + confgcc="${confgcc} $(use_enable lto)"
46 +
47
48 [[ $(tc-is-softfloat) == "yes" ]] && confgcc="${confgcc} --with-float=soft"
49
50 @@ -1913,6 +1919,15 @@
51
52 # Cpoy the needed minispec for hardened gcc 4
53 copy_minispecs_gcc_specs
54 +
55 + # Move pretty-printers to gdb datadir to shut ldconfig up
56 + gdbdir=/usr/share/gdb/auto-load
57 + for module in $(find "${D}" -iname "*-gdb.py" -print); do
58 + insinto ${gdbdir}/$(dirname "${module/${D}/}" | \
59 + sed -e "s:/lib/:/$(get_libdir)/:g")
60 + doins "${module}"
61 + rm "${module}"
62 + done
63 }
64
65 gcc_slot_java() {