X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=177d170089b833904ce44eaf1ae71f474609e26a;hb=1d9fe1f6d7d64aa05993d414c1cd683a2ce231cc;hp=c9989bc6faefc7e38ea8708ea52657c75a1dbf42;hpb=2ff7f7e72730bd5c43f259b7ecf094fbd75ef294;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index c9989bc..177d170 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -30,22 +30,7 @@ PUNT=$EXIT_TEST_WIN build_so() ( echo building $1.so - set +u - case "`uname -m`" in - x86_64|amd64|mips|mips64) - CFLAGS="$CFLAGS -fPIC" - ;; - esac - if [ "`uname`" = Darwin ]; then - SO_FLAGS="-bundle" - if run_sbcl --eval '(sb-ext:quit :unix-status #+x86-64 0 #-x86-64 1)'; then - CFLAGS="$CFLAGS -arch x86_64" - fi - else - SO_FLAGS="-shared" - fi - cc -c $1.c -o $1.o $CFLAGS - ld $SO_FLAGS -o $1.so $1.o + /bin/sh ../run-compiler.sh -sbcl-pic -sbcl-shared "$1.c" -o "$1.so" ) # We want to bail out in case any of these Unix programs fails. @@ -143,7 +128,7 @@ cat > $TEST_FILESTEM.base.lisp < $TEST_FILESTEM.test.lisp <