diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-11-29 22:18:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-11-29 14:18:35 -0800 |
commit | a55da563454e8a0ebb6268122d8f29f8682e5b2f (patch) | |
tree | d3d79c1b9e5a4b58b1f520f8baa121249da4f076 /gcc/exec-tool.in | |
parent | 98cf223ca9c9d0536d56aa16c198b3ecb3951509 (diff) | |
download | gcc-a55da563454e8a0ebb6268122d8f29f8682e5b2f.zip gcc-a55da563454e8a0ebb6268122d8f29f8682e5b2f.tar.gz gcc-a55da563454e8a0ebb6268122d8f29f8682e5b2f.tar.bz2 |
Check and export LT_RCU_$id instead of LT_RCU.
2010-11-29 H.J. Lu <hongjiu.lu@intel.com>
PR driver/46712
* exec-tool.in (id): New.
Check and export LT_RCU_$id instead of LT_RCU.
From-SVN: r167275
Diffstat (limited to 'gcc/exec-tool.in')
-rw-r--r-- | gcc/exec-tool.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index 0ae8f2a..dff73a6 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -28,6 +28,7 @@ fast_install=@enable_fast_install@ objdir=@objdir@ invoked=`basename "$0"` +id=$invoked case "$invoked" in as) original=$ORIGINAL_AS_FOR_TARGET @@ -44,6 +45,7 @@ case "$invoked" in fi prog=ld-new$exeext dir=ld + id=ld ;; nm) original=$ORIGINAL_NM_FOR_TARGET @@ -68,9 +70,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*. + eval LT_RCU="\${LT_RCU_$id}" test x"$LT_RCU" = x"1" && exec $scriptdir/../prev-$dir/$prog ${1+"$@"} - LT_RCU=1; export LT_RCU + eval LT_RCU_$id=1 + export LT_RCU_$id $scriptdir/../$dir/$prog ${1+"$@"} result=$? exit $result @@ -83,5 +87,3 @@ case "$original" in exec $original ${1+"$@"} ;; esac - - |