zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] use -undefined dynamic_lookup on recent macOS
@ 2024-09-30  2:03 Jun T
  0 siblings, 0 replies; only message in thread
From: Jun T @ 2024-09-30  2:03 UTC (permalink / raw)
  To: zsh-workers

On Darwin-22 (macOS-13 Ventura) I get the following

warning: -undefined suppress is deprecated

when building module DLLs. It seems we should use
"-undefined dynamic_lookup".
This option works on Darwin-22, 23 (Sonoma), 24 (Sequoia).
But on Darwin-21 (Monterey) it gives

warning: -undefined dynamic_lookup may not work with chained fixups


diff --git a/configure.ac b/configure.ac
index 7073f4e2c..bca99b7f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2637,7 +2637,9 @@ int main(int argc, char *argv[])
     sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;;
     aix*)         DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
     solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
-    darwin*)      DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined suppress}" ;;
+    darwin[[0-9]].*|darwin1?.*|darwin2[01].*)
+                  DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined suppress}" ;;
+    darwin*)      DLLDFLAGS="${DLLDFLAGS=-bundle -flat_namespace -undefined dynamic_lookup}" ;;
     beos*) DLLDFLAGS="${DLLDFLAGS=-nostart}" ;;
     openbsd*)
       if test x$zsh_cv_sys_elf = xyes; then




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-30  2:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-30  2:03 [PATCH] use -undefined dynamic_lookup on recent macOS Jun T

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).