X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ea05cbc555fa3fdc624bb7fc87152f9bb9f91fb0;hb=22a6702974b7d6ff4e8f2b3b7b5ff446fc632de0;hp=35efc19849e067440f011c0d56b7f2d4c3d23533;hpb=c4e725639ba67b17664700c96d04746f97c8075c;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 35efc19..ea05cbc 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -23,20 +23,20 @@ PUNT=104 testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ -## Make a little shared object files to test with. +## Make some shared object files to test with. build_so() { echo building $1.so - if [ "$(uname -m)" = 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" fi cc -c $1.c -o $1.o $CFLAGS - ld $SO_FLAGS -o $1.so $1.o + ld $SO_FLAGS -o $1.so $1.o } echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c @@ -123,7 +123,7 @@ cat > $testfilestem.test.lisp < $testfilestem.test.lisp <