From dc0ae58442cfde2a2ad6ab5aa9a9148de175fb1f Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 9 Mar 1999 16:56:51 +0000 Subject: [PATCH] * ltmain.in: fixed a bug that causes archive link to fail when allow_undefined=yes (currently the default). --- ChangeLog | 3 +++ ltmain.in | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fdaa16574..fbfe06378 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-03-09 Gary V. Vaughan + * ltmain.in: fixed a bug that causes archive link to fail when + allow_undefined=yes (currently the default). + * doc/libtool.texi: added missing "@end defvar" statements. * NEWS: merged from trunk and updated. diff --git a/ltmain.in b/ltmain.in index 76fce857b..f630d69e2 100644 --- a/ltmain.in +++ b/ltmain.in @@ -2529,13 +2529,14 @@ EOF continue fi - if test "X$build_old_libs" != Xno && test -n "$old_archive_from_expsyms_cmds"; then - # Get the link name of the library - eval library_name=\"$library_names_spec\" + if test "$build_libtool_libs" = yes && + test -n "$library_names" && + test -n "$old_archive_from_expsyms_cmds"; then + + # figure out the soname set dummy $library_names realname="$2" shift; shift - if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else -- 2.47.2