diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-08-13 10:51:42 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-08-13 14:38:56 +0100 |
commit | 25be11e982c76200fabb375c8c63eff8c6856980 (patch) | |
tree | 728a985af255a76851f31368e7d531f62a4f963c | |
parent | adae87c162e3cf5ad161d136f0121d095c09f3a9 (diff) | |
download | gcc-25be11e982c76200fabb375c8c63eff8c6856980.zip gcc-25be11e982c76200fabb375c8c63eff8c6856980.tar.gz gcc-25be11e982c76200fabb375c8c63eff8c6856980.tar.bz2 |
modula-2, plugin: Fix Darwin bootstrap issues.
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.
-rw-r--r-- | gcc/m2/Make-lang.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in index 8c6bac2..ca1581f 100644 --- a/gcc/m2/Make-lang.in +++ b/gcc/m2/Make-lang.in @@ -39,6 +39,7 @@ else PLUGINLDFLAGS = -Wl,-undefined,dynamic_lookup PLUGINLDFLAGS += -Wl,-install_name,m2rte$(soext) PLUGINLDFLAGS += -nodefaultlibs + PLUGINLDFLAGS += -lc endif TEXISRC = $(srcdir)/doc/gm2.texi \ @@ -91,7 +92,7 @@ PGE=m2/pge$(exeext) 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) \ @@ -420,7 +421,7 @@ plugin/m2rte$(soext): $(srcdir)/m2/plugin/m2rte.cc $(GCC_HEADER_DEPENDENCIES_FOR else m2.install-plugin: -plugin/m2rte$(exeext).so: +plugin/m2rte$(soext): endif |