]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.m4sh [darwin]: Don't add installed libs to
authorPeter O'Gorman <peter@pogma.com>
Thu, 3 Feb 2005 03:53:12 +0000 (03:53 +0000)
committerPeter O'Gorman <peter@pogma.com>
Thu, 3 Feb 2005 03:53:12 +0000 (03:53 +0000)
temp_rpath when building executables on darwin, or other systems
which use hardcode_automatic. It may break our wrapper scripts.

ChangeLog
config/ltmain.m4sh

index 73e210ced3f21bd557fbc766f77235d5e06a06b0..560b90d9c764c25299eb0035921a5a2cf9328240 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-03  Peter O'Gorman  <peter@pogma.com>
+
+       * config/ltmain.m4sh [darwin]: Don't add installed libs to 
+       temp_rpath when building executables on darwin, or other systems
+       which use hardcode_automatic. It may break our wrapper scripts.
+
 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * config/getopt.m4sh (func_version, func_usage, func_help,
index a6afdaf4372f5d34deeed2ff72cd86a2307c3797..1c407e44f2983b67bfce6b8acfe84f5cb9f4596e 100644 (file)
@@ -3397,6 +3397,8 @@ func_mode_link ()
        # it will not redefine variables installed, or shouldnotlink
        installed=yes
        shouldnotlink=no
+       avoidtemprpath=
+
 
        # Read the .la file
        case $lib in
@@ -3508,6 +3510,7 @@ func_mode_link ()
            dir="$libdir"
            absdir="$libdir"
          fi
+         test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
        else
          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
            dir="$ladir"
@@ -3598,7 +3601,7 @@ func_mode_link ()
          if test -n "$library_names" &&
             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
            # We need to hardcode the library path
-           if test -n "$shlibpath_var"; then
+           if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
              # Make sure the rpath contains only unique directories.
              case "$temp_rpath " in
              *"$absdir:"*) ;;