]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_mode_link):
authorHoward Chu <hyc@highlandsun.com>
Sat, 29 Oct 2005 14:21:02 +0000 (14:21 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 29 Oct 2005 14:21:02 +0000 (14:21 +0000)
With `-static', only link statically against uninstalled
libtool libraries.  Fixes 1.5.x regression to match documented
behavior.
* NEWS: Updated.

ChangeLog
NEWS
libltdl/config/ltmain.m4sh

index 27487ac8b66fd48bf3d32dadefaa13607f787baf..fd57f25646f9a963d10b5def4e9d64bc320d100a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-10-29  Howard Chu  <hyc@highlandsun.com>
+
+       * libltdl/config/ltmain.m4sh (func_mode_link):
+       With `-static', only link statically against uninstalled
+       libtool libraries.  Fixes 1.5.x regression to match documented
+       behavior.
+       * NEWS: Updated.
+
 2005-10-27  Stepan Kasal  <kasal@ucw.cz>
 
        * HACKING: Update note about use of `$#' in m4 macros.
diff --git a/NEWS b/NEWS
index c7c68d306e983a77816fc71c676e46a014917384..bb2b2c179d5c719df9a9983b039ddc66ab8c1ce2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,8 @@ New in 1.9h: 2005-??-??; CVS version 2.1a, Libtool team:
 * Detection of compiler wrappers like distcc/ccache and $host_alias prefix.
 * Initial Support for FC (modern Fortran).
 * Fixed a regression that prevented use of libltdl without autotools.
+* Fixed a branch-1-5/HEAD regression to only link uninstalled libraries
+  statically with `-static'.
 * Bug fixes.
 \f
 New in 1.9f: 2004-10-23; CVS version 1.9e, Libtool team:
index ea982b0d91bee0f03c6e09cd9026091fed7e3203..0c012de21270cefae3bc438bacd57be9889d9590 100644 (file)
@@ -2218,14 +2218,15 @@ func_mode_link ()
            compile_command="$compile_command $link_static_flag"
            finalize_command="$finalize_command $link_static_flag"
          fi
+         prefer_static_libs=yes
        else
          if test -z "$pic_flag" && test -n "$link_static_flag"; then
            dlopen_self=$dlopen_self_static
          fi
+         prefer_static_libs=built
        fi
        build_libtool_libs=no
        build_old_libs=yes
-       prefer_static_libs=yes
        break
        ;;
       esac
@@ -3598,8 +3599,12 @@ func_mode_link ()
        fi
 
        link_static=no # Whether the deplib will be linked statically
+       use_static_libs=$prefer_static_libs
+       if test "$use_static_libs" = built && test "$installed" = yes; then
+         use_static_libs=no
+       fi
        if test -n "$library_names" &&
-          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+          { test "$use_static_libs" = no || test -z "$old_library"; }; then
          case $host in
          *cygwin* | *mingw*)
              # No point in relinking DLLs because paths are not encoded