| 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.38 2004/02/26 06:47:23 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.39 2004/03/12 05:14:45 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" |
| … | |
… | |
| 77 | } |
77 | } |
| 78 | |
78 | |
| 79 | filter-flags() { |
79 | filter-flags() { |
| 80 | for x in "$@" ; do |
80 | for x in "$@" ; do |
| 81 | case "${x}" in |
81 | case "${x}" in |
| 82 | -fPIC|-fpic|-fPIE|-fpie) etexec-flags;; |
82 | -fPIC|-fpic|-fPIE|-fpie|-pie) etexec-flags;; |
| 83 | -fstack-protector|-fstack-protector-all) fstack-flags;; |
83 | -fstack-protector|-fstack-protector-all) fstack-flags;; |
| 84 | *) ;; |
84 | *) ;; |
| 85 | esac |
85 | esac |
| 86 | done |
86 | done |
| 87 | |
87 | |