| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.34 2004/01/14 20:32:41 solar Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.35 2004/01/20 10:37:19 solar Exp $ |
| 4 | # |
4 | # |
| 5 | # Author Bart Verwilst <verwilst@gentoo.org> |
5 | # Author Bart Verwilst <verwilst@gentoo.org> |
| 6 | |
6 | |
| 7 | ECLASS=flag-o-matic |
7 | ECLASS=flag-o-matic |
| 8 | INHERITED="$INHERITED $ECLASS" |
8 | INHERITED="$INHERITED $ECLASS" |
| … | |
… | |
| 254 | append-ldflags() { |
254 | append-ldflags() { |
| 255 | LDFLAGS="${LDFLAGS} $@" |
255 | LDFLAGS="${LDFLAGS} $@" |
| 256 | return 0 |
256 | return 0 |
| 257 | } |
257 | } |
| 258 | |
258 | |
| 259 | etexec-flags() { |
259 | etexec-flags() { |
| 260 | has_version 'sys-devel/hardened-gcc' && { |
260 | has_version sys-devel/hardened-gcc |
|
|
261 | if [ $? == 0 ]; then |
| 261 | if [ ! is-flag -yet_exec ]; then |
262 | if [ "`is-flag -yet_exec`" != "true" ]; then |
| 262 | debug-print ">>> appending flags -yet_exec" |
263 | debug-print ">>> appending flags -yet_exec" |
| 263 | append-flags -yet_exec |
264 | append-flags -yet_exec |
| 264 | append-ldflags -yet_exec |
265 | append-ldflags -yet_exec |
| 265 | fi |
266 | fi |
| 266 | } |
267 | fi |
| 267 | } |
268 | } |
| 268 | |
269 | |
| 269 | fstack-flags() { |
270 | fstack-flags() { |
| 270 | has_version 'sys-devel/hardened-gcc' && { |
271 | has_version sys-devel/hardened-gcc |
|
|
272 | if [ $? == 0 ]; then |
| 271 | if [ ! is-flag -yno_propolice ]; then |
273 | if [ "`is-flag -yno_propolice`" != "true" ]; then |
| 272 | debug-print ">>> appending flags -yno_propolice" |
274 | debug-print ">>> appending flags -yno_propolice" |
| 273 | append-flags -yno_propolice |
275 | append-flags -yno_propolice |
| 274 | append-ldflags -yno_propolice |
276 | append-ldflags -yno_propolice |
| 275 | fi |
277 | fi |
| 276 | } |
278 | fi |
| 277 | } |
279 | } |