[PATCH 3/3] algol68: link libga68 dynamically by default

Trevor Woerner <[email protected]> Wed, 5 Aug 2026 02:37:29 -0400
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>
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.

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)
-- 
2.51.0