From: Alexandre Oliva Date: Tue, 25 May 1999 15:48:02 +0000 (+0000) Subject: * ltmain.in: Remove object files before writing to them, to avoid X-Git-Tag: release-1-3-2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=053f2f91f6ee555edd82da5a86dcbbbe5b085127;p=thirdparty%2Flibtool.git * ltmain.in: Remove object files before writing to them, to avoid circular links. Reported by Ron O'Hara --- diff --git a/ChangeLog b/ChangeLog index edaf04eb6..663244ab7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-05-25 Alexandre Oliva + + * ltmain.in: Remove object files before writing to them, to avoid + circular links. + Reported by Ron O'Hara + 1999-05-24 Thomas Tanner * doc/libtool.texi: fix "wierd" typo :) diff --git a/ltmain.in b/ltmain.in index 0f92e2741..009327913 100644 --- 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