1 |
vapier 15/06/01 16:05:44 |
2 |
|
3 |
Modified: toolchain.eclass |
4 |
Log: |
5 |
add USE=pie for gcc-6 to control enabling pie by default |
6 |
|
7 |
Revision Changes Path |
8 |
1.675 eclass/toolchain.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.675&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.675&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.674&r2=1.675 |
13 |
|
14 |
Index: toolchain.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
17 |
retrieving revision 1.674 |
18 |
retrieving revision 1.675 |
19 |
diff -u -r1.674 -r1.675 |
20 |
--- toolchain.eclass 1 Jun 2015 07:17:40 -0000 1.674 |
21 |
+++ toolchain.eclass 1 Jun 2015 16:05:43 -0000 1.675 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2015 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.674 2015/06/01 07:17:40 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.675 2015/06/01 16:05:43 vapier Exp $ |
27 |
|
28 |
# Maintainer: Toolchain Ninjas <toolchain@g.o> |
29 |
|
30 |
@@ -152,6 +152,7 @@ |
31 |
# the older versions, we don't want to bother supporting it. #448024 |
32 |
tc_version_is_at_least 4.8 && IUSE+=" graphite" IUSE_DEF+=( sanitize ) |
33 |
tc_version_is_at_least 4.9 && IUSE+=" cilk" |
34 |
+ tc_version_is_at_least 6.0 && IUSE+=" pie" |
35 |
fi |
36 |
|
37 |
IUSE+=" ${IUSE_DEF[*]/#/+}" |
38 |
@@ -1193,6 +1194,10 @@ |
39 |
confgcc+=( $(use_enable sanitize libsanitizer) ) |
40 |
fi |
41 |
|
42 |
+ if tc_version_is_at_least 6.0 ; then |
43 |
+ confgcc+=( $(use_enable pie default-pie) ) |
44 |
+ fi |
45 |
+ |
46 |
# Disable gcc info regeneration -- it ships with generated info pages |
47 |
# already. Our custom version/urls/etc... trigger it. #464008 |
48 |
export gcc_cv_prog_makeinfo_modern=no |