From 97c3860d8070502a581cf20b8a256d1b1a515a79 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 30 May 2008 15:19:45 -0400 Subject: [PATCH] exec-tool.in: Use an environment variable (private) instead of a file (shared) as a semaphore... * exec-tool.in: Use an environment variable (private) instead of a file (shared) as a semaphore, so as to not break parallel builds. From-SVN: r136221 --- gcc/ChangeLog | 5 +++++ gcc/exec-tool.in | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d61e4f4eb2d..9d29edca4fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-30 DJ Delorie + + * exec-tool.in: Use an environment variable (private) instead of a + file (shared) as a semaphore, so as to not break parallel builds. + 2008-05-30 Steven Bosscher * optabs.c (maybe_encapsulate_block): Remove. diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index 6bdddd1d063..98b4500e75e 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -61,12 +61,11 @@ case "$original" in # libtool has not relinked ld-new yet, but we cannot just use the # previous stage (because then the relinking would just never happen!). # So we take extra care to use prev-ld/ld-new *on recursive calls*. - test -f $lt_prog-recursive && exec $scriptdir/../prev-$dir/$prog ${1+"$@"} + test x"$LT_RCU" = x"1" && exec $scriptdir/../prev-$dir/$prog ${1+"$@"} - touch $lt_prog-recursive + LT_RCU=1; export LT_RCU $scriptdir/../$dir/$prog ${1+"$@"} result=$? - rm -f $lt_prog-recursive exit $result else -- 2.30.2