summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorbrian@zim.(none) <>2005-07-20 22:52:15 -0700
committerbrian@zim.(none) <>2005-07-20 22:52:15 -0700
commit262d1f6e913eecc84f719e34abe5a5b6a2b075e4 (patch)
tree285241eb657929451d4a730c093ad45b1cf3b61f /BUILD
parentaab822034231d6297adcc9e65effc83e75d09ad7 (diff)
downloadmariadb-git-262d1f6e913eecc84f719e34abe5a5b6a2b075e4.tar.gz
Adding support for opteron optimization in build files.
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu6
1 files changed, 6 insertions, 0 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index b970a4b9a5b..dc894c91cbd 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -90,6 +90,9 @@ case "$cpu_family--$model_name" in
*Athlon*)
cpu_arg="athlon";
;;
+ *Opteron*)
+ cpu_arg="opteron";
+ ;;
# Intel ia64
*Itanium*)
@@ -147,6 +150,9 @@ case "$cc_ver--$cc_verno" in
ppc-*)
check_cpu_args='-mcpu=$cpu_arg -mtune=$cpu_arg'
;;
+ x86_64-*)
+ check_cpu_args='-mtune=$cpu_arg'
+ ;;
*)
check_cpu_cflags=""
return