From 383526da422cf1c962d9be7e9e6ac166e226bf2b Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Wed, 2 Oct 2024 11:57:12 +0900 Subject: [PATCH] 53134: use -undefined dynamic_lookup on recent macOS --- ChangeLog | 4 ++++ configure.ac | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 228a03ec2..a2b9eadae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2024-09-02 Jun-ichi Takimoto + + * 53134: configure.ac: use -undefined dynamic_lookup on recent macOS + 2024-09-21 Bart Schaefer * 53103: Test/A08time.ztst: fix spurious test failure on Solaris 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