[Bug lto/93980] use of lto breaks -Wl,--exclude-libs

sergeev917 at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Mar 1 07:15:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93980

--- Comment #2 from Alexander Sergeyev <sergeev917 at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> Does -fno-use-linker-plugin help?

It seems to work with fat lto objects, but I suspect that no actual lto is
performed in this case.

With -fno-fat-lto-objects -fno-use-linker-plugin:
.bar.o: plugin needed to handle lto object
.foo.a(.foo.o): plugin needed to handle lto object


More information about the Gcc-bugs mailing list