diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 14:53:24 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-12 14:53:24 +0000 |
commit | 5918ededfe216a954b85091f888315eb6f8d462f (patch) | |
tree | 5be3ea824f386e9504ba7899ab7a8f0938a2ad2b /configure.in | |
parent | 3587284ecc887d5d911f158972ca10b816771396 (diff) | |
download | ruby-5918ededfe216a954b85091f888315eb6f8d462f.tar.gz ruby-5918ededfe216a954b85091f888315eb6f8d462f.tar.xz ruby-5918ededfe216a954b85091f888315eb6f8d462f.zip |
merges r20573 and r20574 from trunk into ruby_1_9_1.
* configure.in (LIBPATHFLAG): use numbered specifier if RPATHFLAG
is set. [ruby-talk:322136]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 8f7463142..5b38723b2 100644 --- a/configure.in +++ b/configure.in @@ -1291,7 +1291,6 @@ AC_SUBST(DLEXT2)dnl AC_SUBST(LIBEXT)dnl STATIC= -: ${LIBPATHFLAG=' -L%s'} : ${PATHFLAG=''} if test "$with_dln_a_out" != yes; then @@ -1321,7 +1320,6 @@ if test "$with_dln_a_out" != yes; then [ --disable-rpath embed run path into extension libraries.], [enable_rpath=$enableval], [enable_rpath="$rb_cv_binary_elf"]) if test "$enable_rpath" = yes; then - LIBPATHFLAG=" -L%1\$-s" RPATHFLAG=" ${linker_flag}-R%1\$-s" fi @@ -1474,6 +1472,12 @@ if test "${LDSHAREDXX}" = ""; then ;; esac fi +case ${RPATHFLAG} in +*'%1$'*) + : ${LIBPATHFLAG=' -L%1$-s'};; +*) + : ${LIBPATHFLAG=' -L%s'};; +esac AC_SUBST(LINK_SO) AC_SUBST(LIBPATHFLAG) |