From: Alexandre Oliva Date: Mon, 4 Sep 2000 06:29:16 +0000 (+0000) Subject: * ltmain.in (compile, need_lock): Don't create nor remove lock X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd1b9e77b56843e647a285e0c8d415f624171f4b;p=thirdparty%2Flibtool.git * ltmain.in (compile, need_lock): Don't create nor remove lock files in dry runs. --- diff --git a/ChangeLog b/ChangeLog index fdf16df93..0c3b0d722 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-09-04 Alexandre Oliva + * ltmain.in (compile, need_lock): Don't create nor remove lock + files in dry runs. + * ltmain.in (link -static): Don't add $link_static_flag; only -all-static should do that. * mdemo/configure.in: Revert the previous delta. diff --git a/ltmain.in b/ltmain.in index 1a4a10864..6f9b19f3a 100644 --- a/ltmain.in +++ b/ltmain.in @@ -402,7 +402,7 @@ if test -z "$show_help"; then # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then - until ln "$0" "$lockfile" 2>/dev/null; do + until $run ln "$0" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done @@ -612,7 +612,7 @@ compiler." # Unlock the critical section if it was locked if test "$need_locks" != no; then - $rm "$lockfile" + $run $rm "$lockfile" fi exit 0