]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Remove object files before writing to them, to avoid
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 25 May 1999 15:48:02 +0000 (15:48 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 25 May 1999 15:48:02 +0000 (15:48 +0000)
circular links.
Reported by Ron O'Hara <rono@sentuny.com.au>

ChangeLog
ltmain.in

index 92c97616b3ea92c68a92404765a52f9471c20c0d..08f733bc3ea886648272f7fbd4af68c4eb48ab75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltmain.in: Remove object files before writing to them, to avoid
+       circular links.
+       Reported by Ron O'Hara <rono@sentuny.com.au>
+
 1999-05-24 Thomas Tanner  <tanner@ffii.org>
 
        * NEWS: support for installing stripped libraries using GNU strip 
index 38afedbaab14cf8112cf89fa71750b88d3d3e768..9f4040973d614063cfe43a191bc17b5e701918c6 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -466,6 +466,7 @@ compiler."
        command="$command -o $output_obj"
       fi
 
+      $run $rm "$output_obj"
       $show "$command"
       if $run eval "$command"; then :
       else
@@ -545,6 +546,7 @@ compiler."
 
       # Suppress compiler output if we already did a PIC compilation.
       command="$command$suppress_output"
+      $run $rm "$output_obj"
       $show "$command"
       if $run eval "$command"; then :
       else