X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=edc251eaf5d42b56e6c36da8807e4331e9656adb;hb=36a59e15bbd951e012297be691a8b7b526fcccf6;hp=60f815aafde9eb29b8827ed40943b0a4b934a4e2;hpb=079ef9dad558ca07cb8178ef428bf738112174fa;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 60f815a..edc251e 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -27,10 +27,10 @@ testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ build_so() { echo building $1.so - if [ $(uname -p) = x86_64 ]; then + if [ "$(uname -m)" = x86_64 ]; then CFLAGS="$CFLAGS -fPIC" fi - if [ $(uname) = Darwin ]; then + if [ "$(uname)" = Darwin ]; then SO_FLAGS="-bundle" else SO_FLAGS="-shared" @@ -84,6 +84,10 @@ cat > $testfilestem.def.lisp < $testfilestem.test.lisp <