]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (compile, need_lock): Don't create nor remove lock
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 06:29:18 +0000 (06:29 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 06:29:18 +0000 (06:29 +0000)
files in dry runs.

ChangeLog
ltmain.in

index def15fecec1fb019bba005e755be570c3cc30f07..858a9c835a03479e5c6f77a6d610d3efafe32f8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-04  Alexandre Oliva  <aoliva@redhat.com>
 
+       * ltmain.in (compile, need_lock): Don't create nor remove lock
+       files in dry runs.
+       
        * libltdl/ltdl.c (load_deplibs): Don't append shlib_ext; use
        lt_dlopenext() instead.
 
index ec2eeba8a55391c2244233473ffad3e4c0bda968..e71c7834e5ec8760644614443865a4a44053ab4c 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -570,7 +570,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
@@ -768,7 +768,7 @@ EOF
 
     # Unlock the critical section if it was locked
     if test "$need_locks" != no; then
-      $rm "$lockfile"
+      $run $rm "$lockfile"
     fi
 
     exit 0