This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[binutils 2.21]: ld.exe: unrecognized option '-plugin'
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: binutils at sourceware dot org
- Date: Fri, 24 Jun 2011 13:28:12 +0200
- Subject: [binutils 2.21]: ld.exe: unrecognized option '-plugin'
HI, I am trying to us link time optimization (LTO) with a canadian
cross toolchain and get the error
./bin/../lib/gcc/avr/4.6.1/../../../../avr/bin/ld.exe: unrecognized
option '-plugin'
from ld.
Binutils configured:
../../source/binutils-2.21/configure --target=avr
--prefix=/local/gnu/install/avr-gcc-4.6.1-mingw32 --host=i386-mingw32
--build=i686-linux-gnu --disable-nls --enable-lto --enable-plugin
For a native build with HOST=BUILD, avr-ld lists -plugin with --help,
but for the canadian cross that option is missing for avr-ld.
Can anyone point me to what's going wrong or how I have to configure
binutils-2.21 as canadian cross in order to get LTO/plugins to work?
Thanks for any hints.
Johann