projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.3.63:
[sbcl.git]
/
tools-for-build
/
grovel-features.sh
diff --git
a/tools-for-build/grovel-features.sh
b/tools-for-build/grovel-features.sh
index
0ba0760
..
935c099
100644
(file)
--- a/
tools-for-build/grovel-features.sh
+++ b/
tools-for-build/grovel-features.sh
@@
-1,20
+1,15
@@
# Automated platform feature testing
# Automated platform feature testing
-
-DIR=tools-for-build
+cd ./tools-for-build > /dev/null
# FIXME: Use this to test for dlopen presence and hence
# load-shared-object buildability
# FIXME: Use this to test for dlopen presence and hence
# load-shared-object buildability
-# $1 feature
-# $2 additional flags
-#
# Assumes the presence of $1-test.c, which when built and
# run should return with 104 if the feature is present.
# Assumes the presence of $1-test.c, which when built and
# run should return with 104 if the feature is present.
-#
featurep() {
featurep() {
- bin="$DIR/$1-test"
+ bin="$1-test"
rm -f $bin
rm -f $bin
- cc $DIR/$1-test.c $2 -o $bin > /dev/null 2>&1 && $bin > /dev/null 2>&1
+ $GNUMAKE $bin -I ../src/runtime > /dev/null 2>&1 && ./$bin > /dev/null 2>&1
if [ "$?" = 104 ]
then
printf " :$1"
if [ "$?" = 104 ]
then
printf " :$1"
@@
-22,4
+17,8
@@
featurep() {
rm -f $bin
}
rm -f $bin
}
-featurep os-provides-dladdr -ldl
+# KLUDGE: ppc/darwin dlopen is special cased in make-config.sh, as
+# we fake it with a shim.
+featurep os-provides-dlopen
+
+featurep os-provides-dladdr