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-3b~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73c99f03b21642411ec92dfa305463f51c04fe01;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 92c97616b..08f733bc3 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 * NEWS: support for installing stripped libraries using GNU strip diff --git a/ltmain.in b/ltmain.in index 38afedbaa..9f4040973 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