title: How to fix "unrecognized option '-plugin`" when using gdc to compile D program?
body: <p>I download the <a href="http://gdcproject.org/downloads" rel="noreferrer">GDC</a> for <code>Linux</code>, and try to build a simple <code>D</code> Program. After executing "<code>gdc hello.d -o hello</code> ", it outputs: </p>
  
  <pre><code>[root@localhost nan]# gdc hello.d -o hello
  /usr/bin/ld: unrecognized option '-plugin'
  /usr/bin/ld: use the --help option for usage information
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Then I use "<code>gdc -v hello.d -o hello</code>" command, and try to find the root cause. It displays:  </p>
  
  <pre><code>......
  COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
   /home/nan/x86_64-gdcproject-linux-gnu/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/collect2 -plugin /home/nan/x86_64-gdcproject-linux-gnu/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/liblto_plugin.so -plugin-opt=/home/nan/x86_64-gdcproject-linux-gnu/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccWgsSJO.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o hello /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /home/nan/x86_64-gdcproject-linux-gnu/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtbegin.o -L/home/nan/x86_64-gdcproject-linux-gnu/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0 -L/home/nan/x86_64-gdcproject-linux-gnu/bin/../lib/gcc -L/lib/../lib64 -L/usr/lib/../lib64 -L/home/nan/x86_64-gdcproject-linux-gnu/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../.. /tmp/ccEygjf5.o -lgphobos2 -lm -lpthread -lrt -lgcc_s -lgcc -lc -lgcc_s -lgcc /home/nan/x86_64-gdcproject-linux-gnu/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.0/crtend.o /usr/lib/../lib64/crtn.o
  </code></pre>
  
  <p>It seems that <code>collect2</code> doesn't recognize "<code>-plugin</code>" option. I try to <code>google</code> it, but can't find any valuable information. Could anyone give some suggestions? Thanks very much in advance!</p>