clean up and simplify optimization flags for OS X PowerPC build

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7201 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-06-01 12:34:29 +00:00
parent 8b68707bc4
commit 4175a9bfb5
1 changed files with 3 additions and 15 deletions

View File

@ -674,21 +674,9 @@ if env['DIST_TARGET'] != 'tiger' and env['DIST_TARGET'] != 'leopard':
if config[config_cpu] == 'powerpc' and env['DIST_TARGET'] != 'none':
#
# Apple/PowerPC optimization options
#
# -mcpu=7450 does not reliably work with gcc 3.*
#
if env['DIST_TARGET'] == 'panther' or env['DIST_TARGET'] == 'tiger':
if config[config_arch] == 'apple':
## opt_flags.extend ([ "-mcpu=7450", "-faltivec"])
# to support g3s but still have some optimization for above
opt_flags.extend ([ "-mcpu=G3", "-mtune=7450"])
else:
opt_flags.extend ([ "-mcpu=7400", "-maltivec", "-mabi=altivec"])
else:
opt_flags.extend([ "-mcpu=750", "-mmultiple" ])
opt_flags.extend (["-mhard-float", "-mpowerpc-gfxopt"])
opt_flags.extend (["-Os"])
# PowerPC options
#
opt_flags.extend ([ "-mcpu=7450", "-mcpu=7450" ])
elif ((re.search ("i[0-9]86", config[config_cpu]) != None) or (re.search ("x86_64", config[config_cpu]) != None)) and env['DIST_TARGET'] != 'none':