projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.18.36:
[sbcl.git]
/
tests
/
foreign.test.sh
diff --git
a/tests/foreign.test.sh
b/tests/foreign.test.sh
index
7d207b4
..
bd91bfe
100644
(file)
--- a/
tests/foreign.test.sh
+++ b/
tests/foreign.test.sh
@@
-26,8
+26,11
@@
testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$
## Make a little shared object files to test with.
build_so() {
## Make a little shared object files to test with.
build_so() {
- echo building $1.so
- cc -c $1.c -o $1.o
+ echo building $1.so
+ if [ $(uname -p) = x86_64 ]; then
+ CFLAGS="$CFLAGS -fPIC"
+ fi
+ cc -c $1.c -o $1.o $CFLAGS
ld -shared -o $1.so $1.o
}
ld -shared -o $1.so $1.o
}