--- ltmain.in~ Thu Dec 26 05:53:37 2002 +++ ltmain.in Thu Dec 26 06:49:20 2002 @@ -598,11 +598,11 @@ fi # 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 $run ln "$0" "$lockfile" 2>/dev/null; do + until $run ln "$output_obj" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then