]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Save exit status of link_command before removing
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 29 Apr 1999 12:01:59 +0000 (12:01 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 29 Apr 1999 12:01:59 +0000 (12:01 +0000)
symbol table object file.

ChangeLog
ltmain.in

index 940c1b3fc9b96bcf60d0e0f77d0ab6e89c422417..8f5d575ca3db112da6e02613fb8ed562521b47f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltmain.in: Save exit status of link_command before removing
+       symbol table object file.
+
 1999-04-29  Gary V. Vaughan  <gary@oranda.demon.co.uk>
 
        * doc/PLATFORMS: updated my hpux-10.20 and cygwin box entries.
index d1c2ad8df41cf31ad536b02c790ab38b6f517489..884a29702f497ecbd273cff7538a477b44bf5c05 100644 (file)
--- 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