summaryrefslogtreecommitdiff
path: root/eclass
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
commitd8e1493b0acd17a89da006c01083ad8d64ea94a0 (patch)
treeafbf451e849cc4b54b9bb2860159b18d9c918400 /eclass
parent~amd64 (diff)
downloadhistorical-d8e1493b0acd17a89da006c01083ad8d64ea94a0.tar.gz
historical-d8e1493b0acd17a89da006c01083ad8d64ea94a0.tar.bz2
historical-d8e1493b0acd17a89da006c01083ad8d64ea94a0.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')
-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