https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84995
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Дилян Палаузов from comment #9) > Yes, $(libdir)/bfd-plugins is a location automatically scanned by > ar/nm/ranlib. > > The question is, why GCC’s “make install” does not put there its linker > plugin. Looks at what we do in SUSE, you can have multiple packages of gcc (like gcc7, gcc8). But there's a packages 'gcc' that's responsible for creation of the following symlink: /usr/lib/bfd-plugins/liblto_plugin.so.0.0.0 -> /usr/lib64/gcc/x86_64-suse-linux/8/liblto_plugin.so.0.0.0 so then nm,ranlib,.. is relying on the 'system' compiler. > > As long as nobody installs the linker plugins under $(libdir)/bfd-plugins, > how are program ./configure’s supposed to be written in a way, that LTO > works with both Clang and GCC? Richi can you please elaborate on that?