--- src/a68g/plugin-driver.c.orig	2025-10-09 09:24:23
+++ src/a68g/plugin-driver.c	2025-10-12 23:20:25
@@ -92,6 +92,12 @@
           WRITE (A68G_STDOUT, A68G (output_line));
         }
         ABEND (system (cmd) != 0, ERROR_ACTION, cmd);
+
+        // For early Mac compiler versions
+        #if !defined (EXPORT_DYNAMIC_FLAGS)
+          #define EXPORT_DYNAMIC_FLAGS "-export-dynamic -shared"
+        #endif
+
         ASSERT (a68g_bufprt (cmd, SNPRINTF_SIZE, "ld %s -o \"%s\" \"%s\"", EXPORT_DYNAMIC_FLAGS, FILE_PLUGIN_NAME (&A68G_JOB), FILE_BINARY_NAME (&A68G_JOB)) >= 0);
         if (OPTION_VERBOSE (&A68G_JOB)) {
           ASSERT (a68g_bufprt (A68G (output_line), SNPRINTF_SIZE, "%s: %s", A68G (a68g_cmd_name), cmd) >= 0);
