X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fforeign.test.sh;h=2f1f40587689f3efb1c6a66d0ff6d1bad8351818;hb=ec30c81b59228c659fd602f98b7d7c9fc162cc0f;hp=045d36bb63f1e900d40a3665d6645df8459570bf;hpb=4e6200853a661da5e73d0843a4afca9077a06fa8;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 045d36b..2f1f405 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -27,7 +27,7 @@ testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ build_so() { echo building $1.so - if [ "`uname -m`" = x86_64 ]; then + if [ "`uname -m`" = x86_64 -o "`uname -m`" = amd64 ]; then CFLAGS="$CFLAGS -fPIC" fi if [ "`uname`" = Darwin ]; then @@ -111,7 +111,7 @@ build_so $testfilestem-c ## Foreign definitions & load -cat > $testfilestem.def.lisp < $testfilestem.base.lisp < $testfilestem.def.lisp < $testfilestem.def.lisp < $testfilestem.fast.lisp +cat $testfilestem.base.lisp >> $testfilestem.fast.lisp + +echo "(declaim (optimize space))" > $testfilestem.small.lisp +cat $testfilestem.base.lisp >> $testfilestem.small.lisp + # Test code cat > $testfilestem.test.lisp < $testfilestem.test.lisp < $testfilestem.test.lisp <