]> 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 edaf04eb627db2f6080486eef2ed208dacd1768d..663244ab7775faa7262e7d892c5656c091fcb4da 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>
 
        * doc/libtool.texi: fix "wierd" typo :)
index 0f92e27414cd3e21989040106fa3cc9ce29ec17b..0093279138e57a88e52d32baee6f325db9cc5bb7 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