X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=bc97a83a5d28ad843dae745cfc898337b0abf08e;hb=6d36f2d6954cb79e3c88fef33fe0c3ad63deaea8;hp=2c5d0d309b3c2b9c4e959d671408172454a51925;hpb=8694b0dfc9f55890eaff390453896b5f9c64e319;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 2c5d0d3..bc97a83 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -30,31 +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 - case "`uname`" in - Darwin) - 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 - ;; - OpenBSD) - SO_FLAGS="-shared" - if [ "`machine -a`" = "powerpc" ]; then - CFLAGS="$CFLAGS -fPIC" - fi - ;; - *) - SO_FLAGS="-shared" - ;; - esac - 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.