[Bug lto/78795] LTO causes undefined reference errors when linking with GMP "make check"
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 14 09:49:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78795
--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Vincent Lefèvre from comment #8)
> (In reply to Markus Trippelsdorf from comment #7)
> > And no, it is not a libtool issue. You can use your systems binutils just
> > fine, just add a symlink to lib/bfd-plugins/.
>
> I'm using Debian packages. So, shouldn't this be the goal of the Debian
> packages? Also, I don't see how this can be handled with several GCC
> versions installed, as each GCC version has its own liblto_plugin.so.
>
> If one compiles with "-flto", then everything should be automatic to use the
> right plugin as needed, without needing the end user to specify other
> "configure" environment variables.
Currently all liblto_plugin.so from all GCC versions can be used
interchangeably.
You can also add a symlink to LLVMgold.so in the same directory and binutils
will load the correct plugin automatically.
More information about the Gcc-bugs
mailing list