[Bug driver/42690] Undefined reference errors with -flto -fuse-linker-plugin

d dot g dot gorbachev at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 18 18:48:00 GMT 2010



------- Comment #15 from d dot g dot gorbachev at gmail dot com  2010-01-18 18:48 -------
Created an attachment (id=19649)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19649&action=view)
Simple patch

It leaves -plugin-opt in LINK_COMMAND_SPEC, but I think it is not quite right,
as LIBGCC_SPEC and LIB_SPEC are redefined by many targets (and, for example,
choose libc or libc_p depending on -p / -pg / -profile).

GCC r155915 bootstrapped with this patch on i686-pc-linux-gnu with and without
--disable-shared option. It seems to work.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42690



More information about the Gcc-bugs mailing list