On Fri, May 4, 2012 at 10:35 AM, Eric Botcazou wrote:
> 2012-05-04 Eric Botcazou
>
> * configure.ac (PLUGIN_LD): Rename into...
> (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
> * config.in: Regenerate.
> * configure: Likewise.
> * collect2.
Hi,
we ran into a problem with plugin-enabled LTO and a cross-native build of the
compiler for Windows: collect2.c isn't able to find the linker in LTO mode.
The reason is that, at configure time, PLUGIN_LD is set to the $gcc_cv_ld, but
the machinery in collect2.c is set up for suffixes instead: