Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 29 Aug 2015 22:46:38
Message-Id: 1440888381.5bd3e5acff5ad019ef5f6443eeb7df718b30e9c6.vapier@gentoo
1 commit: 5bd3e5acff5ad019ef5f6443eeb7df718b30e9c6
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 29 22:46:14 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 29 22:46:21 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd3e5ac
7
8 toolchain.eclass: add USE=ssp for gcc-6 to control default stack-protector-strong behavior
9
10 eclass/toolchain.eclass | 8 ++++++--
11 1 file changed, 6 insertions(+), 2 deletions(-)
12
13 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
14 index ce21d9a..d93f51d 100644
15 --- a/eclass/toolchain.eclass
16 +++ b/eclass/toolchain.eclass
17 @@ -152,7 +152,7 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
18 # the older versions, we don't want to bother supporting it. #448024
19 tc_version_is_at_least 4.8 && IUSE+=" graphite" IUSE_DEF+=( sanitize )
20 tc_version_is_at_least 4.9 && IUSE+=" cilk"
21 - tc_version_is_at_least 6.0 && IUSE+=" pie"
22 + tc_version_is_at_least 6.0 && IUSE+=" pie +ssp"
23 fi
24
25 IUSE+=" ${IUSE_DEF[*]/#/+}"
26 @@ -1193,7 +1193,11 @@ toolchain_src_configure() {
27 fi
28
29 if tc_version_is_at_least 6.0 ; then
30 - confgcc+=( $(use_enable pie default-pie) )
31 + confgcc+=(
32 + $(use_enable pie default-pie)
33 + # This defaults to -fstack-protector-strong.
34 + $(use_enable ssp default-ssp)
35 + )
36 fi
37
38 # Disable gcc info regeneration -- it ships with generated info pages