--- pouetChess.py 2006-05-28 14:48:12.000000000 +0000 +++ pouetChess.py.new 2008-06-30 03:46:46.000000000 +0000 @@ -2,6 +2,7 @@ import re, os, sys import SCons.Util +import commands from SCons.Options import Options @@ -184,9 +185,14 @@ f.close() + arch = commands.getoutput('uname -m') if len(archflags) == 0: - print "Couldn't detect your CPU, guessing i686 compatible.." - archflags=['-march=i686'] + if arch == 'x86_64': + print "Couldn't detect your CPU, `uname -m` indicates x86_64 compatible.." + archflags=['-march=x86-64'] + else: + print "Couldn't detect your CPU, guessing i686 compatible.." + archflags=['-march=i686'] return archflags