From d5ab481790601140a87b7868996dd3dd7f42b514 Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Wed, 30 Nov 2011 18:55:04 +0200 Subject: [PATCH] add --arch option to make.sh Not for full-blown cross compilation, though. --- NEWS | 6 ++++++ make-config.sh | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 63ddfec..3f0c6ae 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,10 @@ ;;;; -*- coding: utf-8; fill-column: 78 -*- +changes relative to sbcl-1.0.54: + * enhancements to building SBCL: + ** --arch option can be used to specify the architecture to build for. + (Mainly useful for building 32-bit SBCL's on x86-64 hosts, not + full-blows cross-compilation.) + changes in sbcl-1.0.54 relative to sbcl-1.0.53: * minor incompatible changes: ** RENAME-FILE on a symbolic links used to rename the linked-to file diff --git a/make-config.sh b/make-config.sh index 157eea0..472cd3a 100644 --- a/make-config.sh +++ b/make-config.sh @@ -65,6 +65,9 @@ do --prefix=) $optarg_ok && SBCL_PREFIX=$optarg ;; + --arch=) + $oparg_ok && SBCL_ARCH=$optarg + ;; --xc-host=) $optarg_ok && SBCL_XC_HOST=$optarg ;; @@ -128,6 +131,10 @@ Options: taken to be megabytes unless explicitly suffixed with Gb in order to specify the size in gigabytes. + --arch= Specify the architecture to build for. + + Mainly for doing x86 builds on x86-64. + --xc-host= Specify the Common Lisp compilation host. The string provided should be a command to invoke the @@ -318,7 +325,7 @@ echo //setting up CPU-architecture-dependent information sbcl_arch=${SBCL_ARCH:-$guessed_sbcl_arch} echo sbcl_arch=\"$sbcl_arch\" if [ "$sbcl_arch" = "" ] ; then - echo "can't guess target SBCL architecture, need SBCL_ARCH environment var" + echo "can't guess target SBCL architecture, please specify --arch=" exit 1 fi printf ":%s" "$sbcl_arch" >> $ltf -- 1.7.10.4