X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=make-config.sh;h=56c268f5d94e30c8ffe69bc18109afcba08010e3;hb=3fa2feb10ab827fc6cc2a85287e78b6e66b7bf4d;hp=6075913435d37c013d95b623c7ce2f3d73c82c24;hpb=1baab0bfb9538caec57262ed37f693507f6f33ec;p=sbcl.git diff --git a/make-config.sh b/make-config.sh index 6075913..56c268f 100644 --- a/make-config.sh +++ b/make-config.sh @@ -143,6 +143,17 @@ fi printf ":%s" "$sbcl_arch" >> $ltf echo //setting up OS-dependent information + +# 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 +fi + original_dir=`pwd` cd ./src/runtime/ rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h @@ -236,7 +247,7 @@ case "$sbcl_os" in 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 Config + link_or_copy Config.$sbcl_arch-darwin$ver9_or_above Config ;; sunos) printf ' :unix' >> $ltf @@ -318,7 +329,7 @@ elif [ "$sbcl_arch" = "mips" ]; then $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 ' :gencgc :stack-allocatable-closures :stack-allocatable-lists' >> $ltf printf ' :linkage-table' >> $ltf if [ "$sbcl_os" = "linux" ]; then # Use a C program to detect which kind of glibc we're building on,