summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-04 05:46:45 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-04 05:46:45 +0000
commitcd7e4071bd827cc6b81a65b2ed1830c0f98b6e7b (patch)
treeef1a5583291f0c61cceba8525f12cf41cda82eb1
parentf4edf549b7b3362a187c4550e2e7c183b0123f07 (diff)
downloadruby-cd7e4071bd827cc6b81a65b2ed1830c0f98b6e7b.tar.gz
ruby-cd7e4071bd827cc6b81a65b2ed1830c0f98b6e7b.tar.xz
ruby-cd7e4071bd827cc6b81a65b2ed1830c0f98b6e7b.zip
* configure.in: use rb_cv_prog_gnu_ld on FreeBSD.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index b3425ceff..4e9d0c1be 100644
--- a/configure.in
+++ b/configure.in
@@ -741,7 +741,7 @@ if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=yes;;
solaris*) if test "$GCC" = yes; then
LDSHARED='$(CC) -Wl,-G'
- if test $rb_cv_prog_gnu_ld = yes; then
+ if test "$rb_cv_prog_gnu_ld" = yes; then
LDFLAGS="-Wl,-E"
LDSHARED="$LDSHARED -shared"
fi
@@ -771,7 +771,7 @@ if test "$with_dln_a_out" != yes; then
LDFLAGS="-rdynamic"
DLDFLAGS='-Wl,-soname,$(.TARGET)'
else
- test "$GCC" = yes && `$CC --print-prog-name=ld` -v 2>&1 | grep "GNU ld" > /dev/null || LDSHARED="ld -Bshareable"
+ test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
fi
rb_cv_dlopen=yes ;;
netbsd*) LDSHARED='${CC} -shared'