summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-06-01 16:05:43 +0000
committerMike Frysinger <vapier@gentoo.org>2015-06-01 16:05:43 +0000
commit686498f17a0b5eaa3f1f443f09feeeffb85962f4 (patch)
tree122134a24fa9b8e19517a5a3a81e05b43fe6f141 /eclass
parentforce enable ssp/pie USE flags; they are infrequent currently, but gcc will t... (diff)
downloadhistorical-686498f17a0b5eaa3f1f443f09feeeffb85962f4.tar.gz
historical-686498f17a0b5eaa3f1f443f09feeeffb85962f4.tar.bz2
historical-686498f17a0b5eaa3f1f443f09feeeffb85962f4.zip
add USE=pie for gcc-6 to control enabling pie by default
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index a16e5b7da7ca..0380674265cd 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.674 2015/06/01 07:17:40 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.675 2015/06/01 16:05:43 vapier Exp $
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -152,6 +152,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
# the older versions, we don't want to bother supporting it. #448024
tc_version_is_at_least 4.8 && IUSE+=" graphite" IUSE_DEF+=( sanitize )
tc_version_is_at_least 4.9 && IUSE+=" cilk"
+ tc_version_is_at_least 6.0 && IUSE+=" pie"
fi
IUSE+=" ${IUSE_DEF[*]/#/+}"
@@ -1193,6 +1194,10 @@ toolchain_src_configure() {
confgcc+=( $(use_enable sanitize libsanitizer) )
fi
+ if tc_version_is_at_least 6.0 ; then
+ confgcc+=( $(use_enable pie default-pie) )
+ fi
+
# Disable gcc info regeneration -- it ships with generated info pages
# already. Our custom version/urls/etc... trigger it. #464008
export gcc_cv_prog_makeinfo_modern=no