From: Alexandre Oliva Date: Thu, 29 Apr 1999 12:01:59 +0000 (+0000) Subject: * ltmain.in: Save exit status of link_command before removing X-Git-Tag: release-1-3b~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa96d9d4eba7478238fc8fa902c314e02e6b3a3;p=thirdparty%2Flibtool.git * ltmain.in: Save exit status of link_command before removing symbol table object file. --- diff --git a/ChangeLog b/ChangeLog index 940c1b3fc..8f5d575ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-04-29 Alexandre Oliva + + * ltmain.in: Save exit status of link_command before removing + symbol table object file. + 1999-04-29 Gary V. Vaughan * doc/PLATFORMS: updated my hpux-10.20 and cygwin box entries. diff --git a/ltmain.in b/ltmain.in index d1c2ad8df..884a29702 100644 --- a/ltmain.in +++ b/ltmain.in @@ -3093,14 +3093,15 @@ static const void *lt_preloaded_setup() { # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" + status=$? # Delete the generated files. if test -n "$dlsyms"; then - $show "$rm $output_objdir/${output}S.${objext}" - $run $rm "$output_objdir/${output}S.${objext}" + $show "$rm $output_objdir/${outputname}S.${objext}" + $run $rm "$output_objdir/${outputname}S.${objext}" fi - exit $? + exit $status fi if test -n "$shlibpath_var"; then