This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "John.Tytgat at aaug dot net" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 8 Jan 2011 19:58:01 +0100
- Subject: Re: [Bug lto/47225] [4.6.0 regression]: cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found"
- References: <bug-47225-4@http.gcc.gnu.org/bugzilla/> <bug-47225-4-XM7jGRqPfh@http.gcc.gnu.org/bugzilla/>
> I.e. only static library of lto-plugin gets built.
Ahh, static library for lto-plugin is of course pointless thing. I guess we
want to disable plugin when --disable-shared is passed. I will see if my
autoconf-fu is on par to do so.
Still, it is bit sad situation - you are right that you are not interested in
shared libraries for cross, but you might be still interested in plugin for
LTO. Either we need to document the dependency (and warn when plugin is
available but shared libs are disabled) or just enable shared libs for the
plugin itself.
I am adding paolo to CC, he should know best what to do here.
Honza