http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47225
--- Comment #37 from Iain Sandoe <iains at gcc dot gnu.org> 2011-02-08 10:10:21 UTC --- (In reply to comment #36) > No, it should be added for all targets. so.. Index: lto-plugin/Makefile.am =================================================================== --- lto-plugin/Makefile.am (revision 169878) +++ lto-plugin/Makefile.am (working copy) @@ -17,7 +17,7 @@ liblto_plugin_la_SOURCES = lto-plugin.c liblto_plugin_la_LIBADD = \ $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,) # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS -liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \ +liblto_plugin_la_LDFLAGS = $(lt_host_flags) -module -bindir $(libexecsubdir) \ $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a) all: copy_lto_plugin