summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-20 03:07:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-20 03:07:21 +0000
commit1d5f0e29b6c9d15f2194abcf5c2bb78e46c8eeb0 (patch)
treea12e9542bf9ee4eaf9fed7d37b5fd561ec4f18e6 /configure.in
parent1fba74adad08cd3462a76441f6413ce097484ab4 (diff)
* configure.in: Solaris SunPro compiler -rapth patch from
<kuwa at labs.fujitsu.com>. [ruby-dev:28443] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index f12f1fc..e798cd6 100644
--- a/configure.in
+++ b/configure.in
@@ -1276,7 +1276,11 @@ if test "$enable_shared" = 'yes'; then
esac
fi
if test "$enable_rpath" = yes; then
- LIBRUBYARG_SHARED='-Wl,-R -Wl,$(libdir) -L$(libdir) -L. '"$LIBRUBYARG_SHARED"
+ if test "$GCC" = yes; then
+ LIBRUBYARG_SHARED='-Wl,-R -Wl,$(libdir) -L$(libdir) -L. '"$LIBRUBYARG_SHARED"
+ else
+ LIBRUBYARG_SHARED='-R $(libdir) -L$(libdir) -L. '"$LIBRUBYARG_SHARED"
+ fi
fi
XLDFLAGS="$XLDFLAGS -L."