This corrects some typos in the suffix of the m2rte pluing that
lead to a bootstrap fail on Darwin, where the suffix is not '.so'.
On some versions of Darwin, the linker complains if libSystem is not
linked, so we disable all the default libs, but add libc back.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/m2/ChangeLog:
* Make-lang.in: Update suffix spellings to use 'soext'.
Add libc to the plugin link.
PLUGINLDFLAGS = -Wl,-undefined,dynamic_lookup
PLUGINLDFLAGS += -Wl,-install_name,m2rte$(soext)
PLUGINLDFLAGS += -nodefaultlibs
+ PLUGINLDFLAGS += -lc
endif
TEXISRC = $(srcdir)/doc/gm2.texi \
SRC_PREFIX=G
ifeq ($(enable_plugin),yes)
-M2RTE_PLUGIN_SO=plugin/m2rte$(exeext).so
+M2RTE_PLUGIN_SO=plugin/m2rte$(soext)
endif
m2/gm2spec.o: $(srcdir)/m2/gm2spec.cc $(SYSTEM_H) $(GCC_H) $(CONFIG_H) \
else
m2.install-plugin:
-plugin/m2rte$(exeext).so:
+plugin/m2rte$(soext):
endif