https://github.com/egallesio/STklos/pull/512
--- utils/shlib-options.orig	2023-03-10 11:37:34.000000000 -0600
+++ utils/shlib-options	2023-03-16 14:42:22.000000000 -0500
@@ -161,7 +161,7 @@
   Darwin*)
       OS=DARWIN;
       SH_COMP_FLAGS="-fPIC -fno-common"
-      SH_LOAD_FLAGS='-bundle -flat_namespace -undefined suppress'
+      SH_LOAD_FLAGS='-bundle -undefined dynamic_lookup'
       SH_LOADER="$CC"
       SH_SUFFIX='so'
       SH_LIB_SUFFIX='dylib'
