diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-30 19:19:45 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-30 19:19:45 +0000 |
commit | 5346190fb4317c3ebaa785c8d8e39a749a385267 (patch) | |
tree | 4454ab2ff4676e4a40eee01ad8bfb94fde54037c /gcc/exec-tool.in | |
parent | b31c801f37a067d1f2431e63be542c51521ceef5 (diff) | |
download | gcc-5346190fb4317c3ebaa785c8d8e39a749a385267.tar.gz |
* exec-tool.in: Use an environment variable (private) instead of a
file (shared) as a semaphore, so as to not break parallel builds.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/exec-tool.in')
-rw-r--r-- | gcc/exec-tool.in | 5 |
1 files changed, 2 insertions, 3 deletions
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 |