/[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.50 Revision 1.51
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.50 2004/05/12 13:36:17 pappy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.51 2004/05/26 18:53:44 lv 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"
70setup-allowed-flags() { 70setup-allowed-flags() {
71 if [ -z "${ALLOWED_FLAGS}" ] ; then 71 if [ -z "${ALLOWED_FLAGS}" ] ; then
72 export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g" 72 export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g"
73 case "${ARCH}" in 73 case "${ARCH}" in
74 mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;; 74 mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;;
75 amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;; 75 amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC -m64" ;;
76 x86) ALLOWED_FLAGS="${ALLOWED_FLAGS} -m32" ;;
76 alpha) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;; 77 alpha) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
77 ia64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;; 78 ia64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
78 esac 79 esac
79 fi 80 fi
80 81

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20