]> git.ipfire.org Git - thirdparty/libtool.git/commit
Avoid redundant rm in compile mode, fix locking.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Apr 2008 22:01:12 +0000 (00:01 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Apr 2008 22:01:12 +0000 (00:01 +0200)
commit3b98dabaa4c3ed8a07928d1ef883879a476eac94
tree8427e2746f1414559450a14337e3ec5176237556
parent1006ccc48c14d3715c569cca68dab54742207273
Avoid redundant rm in compile mode, fix locking.

* libltdl/config/ltmain.m4sh (func_mode_compile): Avoid
redundant removal of old output files before compilation.
Do not remove $obj until we have successfully grabbed the
lockfile (in case the compiler doesn't grok `-c -o'), because
it might be identical to $output_obj.
At the end of the function, before we remove the lockfile,
update $removelist so that if the trap hits after the lockfile
has been removed, we do not accidentally remove $output_obj that
does not belong to us.
(func_write_libtool_object): Use $MV instead of mv.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/config/ltmain.m4sh