diff options
author | lloyd <[email protected]> | 2007-02-15 07:31:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-02-15 07:31:05 +0000 |
commit | d871d0086e39fc1606a8fc8534c1a86fadd241da (patch) | |
tree | 9fcd82fb3ce1da45f9bdb2d649e4ab2b43c0ab97 | |
parent | 54b95e6be5d3788497d461674869c0e0efc6e15c (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.
-rwxr-xr-x | configure.pl | 3 |
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 |