+2005-10-29 Howard Chu <hyc@highlandsun.com>
+
+ * ltmain.in (link mode): With `-static', only link statically
+ against uninstalled libtool libraries. Fixes 1.5.x regression
+ to match documented (and actual 1.4.x) behavior.
+ * NEWS: Updated.
+
2005-10-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libtoolize.in: Fail if libltdl files not present but
NEWS - list of user-visible changes between releases of GNU Libtool
New in 1.5.21a: 2005-??-??; CVS version 1.5.21a, Libtool team:
+* Fix 1.5 regression that caused linking a program `-static' to also
+ link statically against installed libtool libraries, contrary to
+ documented (and actual 1.4.x) behavior.
* Bug Fixes.
\f
New in 1.5.20: 2005-08-31; CVS version 1.5.19a, Libtool team:
if test -n "$link_static_flag"; then
dlopen_self=$dlopen_self_static
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
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
if test "$installed" = no; then
notinst_deplibs="$notinst_deplibs $lib"
need_relink=yes