Ticket #20904: patch-make-config.sh

File patch-make-config.sh, 535 bytes (added by MasakiOita, 15 years ago)
Line 
1--- make-config.sh.orig 2009-06-29 06:37:05.000000000 +0900
2+++ make-config.sh      2009-09-19 16:12:54.000000000 +0900
3@@ -128,6 +128,11 @@ if [ "$sbcl_os" = "sunos" ] && [ `isainf
4     guessed_sbcl_arch=x86-64
5 fi
6 
7+# Under Mac OSX, uname -m returns "i386" even if CPU is 64bit capable.
8+if [ "$sbcl_os" = "darwin" ] && [ `sysctl -n hw.cpu64bit_capable` = "1" ]; then
9+    guessed_sbcl_arch=x86-64
10+fi
11+
12 echo //setting up CPU-architecture-dependent information
13 sbcl_arch=${SBCL_ARCH:-$guessed_sbcl_arch}
14 echo sbcl_arch=\"$sbcl_arch\"