X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ea05cbc555fa3fdc624bb7fc87152f9bb9f91fb0;hb=f35f14479a64dd97f93d2d91dc154bdc141d6842;hp=40ed2aea64e5c5e5b823f9ceb52316172a38fd59;hpb=6d94caa24f68a3df5ac73e7072cea3e62e9d87f5;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 40ed2ae..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