Re: [PATCH 3/3] algol68: link libga68 dynamically by default
"Jose E. Marchesi" <[email protected]> Wed, 05 Aug 2026 16:29:00 +0200
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <[email protected]> |
Hello. > The ga68 driver defaults to linking the Algol 68 runtime statically, so > every program carries its own copy of libga68 and a distribution that > packages the shared library finds nothing uses it. It is also the odd > one out: gfortran, gcobol and gcc itself all link their runtimes > dynamically by default and offer -static-lib<foo> for the other choice. > > Default to dynamic. -static-libga68 continues to select static linking > for anyone who wants it. Thanks for the patch. We are not ready yet to turn on dynamic linking with libga68. There are some big changes coming in the compiler-runtime interface. Hopefully we will be able to switch to dynamic linking by default in GCC 17, but not quite yet. > > Assisted by: Codex (Claude Opus 5) > > gcc/algol68/ChangeLog: > > * a68spec.cc (libga68_link): Default to LIBGA68_DYNAMIC. > > Signed-off-by: Trevor Woerner <[email protected]> > --- > gcc/algol68/a68spec.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/algol68/a68spec.cc b/gcc/algol68/a68spec.cc > index bc11abde76e9..d92da22131de 100644 > --- a/gcc/algol68/a68spec.cc > +++ b/gcc/algol68/a68spec.cc > @@ -32,7 +32,7 @@ enum libga68_link_mode > LIBGA68_DYNAMIC > }; > > -static enum libga68_link_mode libga68_link = LIBGA68_STATIC; > +static enum libga68_link_mode libga68_link = LIBGA68_DYNAMIC; > > /* This bit is set if we saw a `-xfoo' language specification. */ > #define LANGSPEC (1 << 1)