fi
# Under Darwin, uname -m returns "i386" even if CPU is x86_64.
-if [ "$sbcl_os" = "darwin" ] && [ "`sysctl -n hw.optional.x86_64`" = "1" ]; then
+if [ "$sbcl_os" = "darwin" ] && [ "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ]; then
guessed_sbcl_arch=x86-64
fi
# Under Darwin x86-64, guess whether Darwin 9+ or below.
if [ "$sbcl_os" = "darwin" ] && [ "$sbcl_arch" = "x86-64" ]; then
- darwin_version=`uname -r`
- darwin_version_major=${DARWIN_VERSION_MAJOR:-${darwin_version%%.*}}
- if (( 8 < $darwin_version_major )); then
- ver9_or_above="9+"
- printf ' :inode64' >> $ltf
- fi
+ darwin_version=`uname -r`
+ darwin_version_major=${DARWIN_VERSION_MAJOR:-${darwin_version%%.*}}
+ if (( 8 < $darwin_version_major )); then
+ printf ' :inode64 :darwin9-or-better' >> $ltf
+ fi
fi
original_dir=`pwd`
printf ' :bsd' >> $ltf
printf ' :darwin' >> $ltf
if [ $sbcl_arch = "x86" ]; then
- printf ' :mach-exception-handler :sb-lutex :restore-fs-segment-register-from-tls' >> $ltf
+ printf ' :mach-exception-handler :sb-lutex :restore-fs-segment-register-from-tls :ud2-breakpoints' >> $ltf
fi
if [ $sbcl_arch = "x86-64" ]; then
- printf ' :mach-exception-handler :sb-lutex' >> $ltf
+ printf ' :mach-exception-handler :sb-lutex :ud2-breakpoints' >> $ltf
fi
link_or_copy $sbcl_arch-darwin-os.h target-arch-os.h
link_or_copy bsd-os.h target-os.h
- link_or_copy Config.$sbcl_arch-darwin$ver9_or_above Config
+ link_or_copy Config.$sbcl_arch-darwin Config
;;
sunos)
printf ' :unix' >> $ltf
$GNUMAKE -C tools-for-build determine-endianness -I ../src/runtime
tools-for-build/determine-endianness >> $ltf
elif [ "$sbcl_arch" = "ppc" ]; then
- printf ' :gencgc :stack-allocatable-closures :stacka-allocatable-lists' >> $ltf
- printf ' :linkage-table' >> $ltf
+ printf ' :gencgc :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
+ printf ' :linkage-table :raw-instance-init-vops' >> $ltf
if [ "$sbcl_os" = "linux" ]; then
# Use a C program to detect which kind of glibc we're building on,
# to bandage across the break in source compatibility between