summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Tilley <lv@gentoo.org>2004-05-26 18:53:44 +0000
committerTravis Tilley <lv@gentoo.org>2004-05-26 18:53:44 +0000
commit891f1542cd00520c571938d395d4646f79f9a298 (patch)
treed7987284b14be8e2836cfea409e7cd61c8e9595e /eclass/flag-o-matic.eclass
parent~amd64 (Manifest recommit) (diff)
downloadgentoo-2-891f1542cd00520c571938d395d4646f79f9a298.tar.gz
gentoo-2-891f1542cd00520c571938d395d4646f79f9a298.tar.bz2
gentoo-2-891f1542cd00520c571938d395d4646f79f9a298.zip
add -m32 to the list of allowed flags on x86 so that -march=k8 and -mtune=k8 can be used on amd64 machines in 32bit without accidentally producing 64bit code
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index dcc89f47fa38..402d9ef58eeb 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.50 2004/05/12 13:36:17 pappy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.51 2004/05/26 18:53:44 lv Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -72,7 +72,8 @@ setup-allowed-flags() {
export ALLOWED_FLAGS="-O -O1 -O2 -mcpu -march -mtune -fstack-protector -pipe -g"
case "${ARCH}" in
mips) ALLOWED_FLAGS="${ALLOWED_FLAGS} -mips1 -mips2 -mips3 -mips4 -mabi" ;;
- amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
+ amd64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC -m64" ;;
+ x86) ALLOWED_FLAGS="${ALLOWED_FLAGS} -m32" ;;
alpha) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
ia64) ALLOWED_FLAGS="${ALLOWED_FLAGS} -fPIC" ;;
esac