diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-12 16:40:39 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-12 16:40:39 +0000 |
commit | 61b8ff29d97b25594befe43d4dd71675ca30ff82 (patch) | |
tree | 945f04162540acb73ef27c1fcc6375962a1b0c62 /gcc/exec-tool.in | |
parent | 6ee7a2767f6f0b31bae9ad13066cf9d36663882f (diff) | |
download | gcc-61b8ff29d97b25594befe43d4dd71675ca30ff82.tar.gz |
Support '-plugin' as the second option to the linker.
2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/45958
* exec-tool.in: Support '-plugin' as the second option to the
linker.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165389 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/exec-tool.in')
-rw-r--r-- | gcc/exec-tool.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in index a1468999b59..020294e0083 100644 --- a/gcc/exec-tool.in +++ b/gcc/exec-tool.in @@ -36,8 +36,8 @@ case "$invoked" in ;; collect-ld) # when using a linker plugin, gcc will always pass '-plugin' as the - # first option to the linker. - if test x"$1" = "x-plugin"; then + # first or second option to the linker. + if test x"$1" = "x-plugin" || test x"$2" = "x-plugin"; then original=$ORIGINAL_PLUGIN_LD_FOR_TARGET else original=$ORIGINAL_LD_FOR_TARGET |