* ltmain.in: added missing mkdir $progdir for on-demand executable

This commit is contained in:
Alexandre Oliva 1999-02-22 20:55:45 +00:00 committed by Alexandre Oliva
parent 231f7fd15f
commit 635040153e
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
1999-02-22 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltmain.in: added missing mkdir $progdir for on-demand executable
* ltmain.in: create on-demand executable as $progdir/$$-$program,
and rename it to $progdir/$program only when it's finished, to
avoid race conditions. We can still get the program linked

View File

@ -2666,7 +2666,11 @@ else
file=\"\$\$-\$program\"
$rm \"\$progdir/\$file\""
if test ! -d \"\$progdir\"; then
$mkdir \"\$progdir\"
else
$rm \"\$progdir/\$file\"
fi"
echo >> $output "\