aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-02-15 07:31:05 +0000
committerlloyd <[email protected]>2007-02-15 07:31:05 +0000
commitd871d0086e39fc1606a8fc8534c1a86fadd241da (patch)
tree9fcd82fb3ce1da45f9bdb2d649e4ab2b43c0ab97 /configure.pl
parent54b95e6be5d3788497d461674869c0e0efc6e15c (diff)
Fix architecture detection for Athlon64 systems running Linux; a missing
regexp caused configure.pl to assume it was an Athlon, which meant we tried to use -march=athlon with 64-bit code, which GCC does not like.
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.pl b/configure.pl
index 1702d7e89..6c6ac01e6 100755
--- a/configure.pl
+++ b/configure.pl
@@ -1583,7 +1583,8 @@ sub guess_cpu_from_this
$cpu = 'core2duo' if($cpuinfo =~ /intel\(r\) core\(tm\)2/);
- $cpu = 'amd64' if($cpuinfo =~ /athlon64/);
+ $cpu = 'athlon64' if($cpuinfo =~ /athlon64/);
+ $cpu = 'athlon64' if($cpuinfo =~ /athlon\(tm\) 64/);
$cpu = 'amd64' if($cpuinfo =~ /opteron/);
# The 32-bit SPARC stuff is impossible to match to arch type easily, and