/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.19 Revision 1.20
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.19 2003/06/19 13:23:41 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.20 2003/06/25 03:27:43 vapier Exp $
4# 4#
5# Author Bart Verwilst <verwilst@gentoo.org> 5# Author Bart Verwilst <verwilst@gentoo.org>
6 6
7ECLASS=flag-o-matic 7ECLASS=flag-o-matic
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
78strip-flags() { 78strip-flags() {
79 local NEW_CFLAGS="" 79 local NEW_CFLAGS=""
80 local NEW_CXXFLAGS="" 80 local NEW_CXXFLAGS=""
81 81
82 # Allow unstable C[XX]FLAGS if we are using unstable profile ... 82 # Allow unstable C[XX]FLAGS if we are using unstable profile ...
83 if [ "${ACCEPT_KEYWORDS/~/}" != "${ACCEPT_KEYWORDS}" -a \ 83 if [ `has ~${ARCH} ${ACCEPT_KEYWORDS}` ] ; then
84 "${ACCEPT_KEYWORDS/-~/}" = "${ACCEPT_KEYWORDS}" ]
85 then
86 if use debug &> /dev/null
87 then
88 einfo "Enabling the use of some unstable flags" 84 [ `use debug` ] && einfo "Enabling the use of some unstable flags"
89 fi
90
91 ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}" 85 ALLOWED_FLAGS="${ALLOWED_FLAGS} ${UNSTABLE_FLAGS}"
92 fi 86 fi
93 87
94 set -f 88 set -f
95 89
119 done 113 done
120 done 114 done
121 115
122 set +f 116 set +f
123 117
124 use debug &>/dev/null && einfo "CFLAGS=\"${NEW_CFLAGS}\"" 118 [ `use debug` ] \
119 && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \
125 use debug &>/dev/null && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\"" 120 && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\""
126 121
127 export CFLAGS="${NEW_CFLAGS}" 122 export CFLAGS="${NEW_CFLAGS}"
128 export CXXFLAGS="${NEW_CXXFLAGS}" 123 export CXXFLAGS="${NEW_CXXFLAGS}"
129} 124}
130 125
131get-flag() { 126get-flag() {

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20