diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-08 22:36:51 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-08 22:36:51 +0000 |
commit | a93e98326ebd03cc52f47d1d5d4a1e6b37536524 (patch) | |
tree | a77de50fab65df010cf9b254b0984429a0105147 /gcc/exec-tool.in | |
parent | d846f5abdd0b4bbd0ba3ee4edea96f06df110c59 (diff) | |
download | gcc-a93e98326ebd03cc52f47d1d5d4a1e6b37536524.tar.gz |
2009-11-08 H.J. Lu <hongjiu.lu@intel.com>
* collect2.c (main): Search PLUGIN_LD for plugin linker.
* configure.ac (--with-plugin-ld): New. Default to ld.
* configure: Regenerated.
* config.in: Likewise.
* exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
(collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154020 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/exec-tool.in')
-rw-r--r-- | gcc/exec-tool.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index f585163405d..a1468999b59 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -21,6 +21,7 @@ ORIGINAL_AS_FOR_TARGET="@ORIGINAL_AS_FOR_TARGET@" ORIGINAL_LD_FOR_TARGET="@ORIGINAL_LD_FOR_TARGET@" +ORIGINAL_PLUGIN_LD_FOR_TARGET="@ORIGINAL_PLUGIN_LD_FOR_TARGET@" ORIGINAL_NM_FOR_TARGET="@ORIGINAL_NM_FOR_TARGET@" exeext=@host_exeext@ fast_install=@enable_fast_install@ @@ -34,7 +35,13 @@ case "$invoked" in dir=gas ;; collect-ld) - original=$ORIGINAL_LD_FOR_TARGET + # when using a linker plugin, gcc will always pass '-plugin' as the + # first option to the linker. + if test x"$1" = "x-plugin"; then + original=$ORIGINAL_PLUGIN_LD_FOR_TARGET + else + original=$ORIGINAL_LD_FOR_TARGET + fi prog=ld-new$exeext dir=ld ;; |