From: Erez Zadok Date: Tue, 27 Apr 1999 08:04:20 +0000 (+0000) Subject: * ltmain.in (old_archive_cmds): Ensure that there are always .o X-Git-Tag: release-1-3~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e94569592f0fb73660d1bfd0f955ba58fe18b0e;p=thirdparty%2Flibtool.git * ltmain.in (old_archive_cmds): Ensure that there are always .o objects available before running old_archive_cmds. --- diff --git a/ChangeLog b/ChangeLog index c2d207552..331c06e61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,11 @@ would never match; fixed. Reported by Stephan Kulow +1999-04-26 Gary V. Vaughan + + * ltmain.in (old_archive_cmds): Ensure that there are always .o + objects available before running old_archive_cmds. + 1999-04-25 Alexandre Oliva * libtool.m4 (OBJDUMP): Pass it to ltconfig. diff --git a/ltmain.in b/ltmain.in index 5a70241e7..4e329af80 100644 --- a/ltmain.in +++ b/ltmain.in @@ -2903,6 +2903,19 @@ fi\ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then eval cmds=\"$old_archive_from_new_cmds\" else + # Ensure that we have .o objects in place incase we decided + # not to build a shared library, and have fallen back to building + # static libs even though --disable-static was passed! + if test "X$pic_flag" = X; then + for obj in $libobjs; do + oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"` + if test ! -f $oldobj; then + $show "${LN_S} $obj $oldobj" + $run ${LN_S} $obj $oldobj || exit $? + fi + done + fi + eval cmds=\"$old_archive_cmds\" fi IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'