branch development updated: m4: Disable chained fixups for macOS

Ileana Dumitrescu <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch development
in repository libtool.

The following commit(s) were added to refs/heads/development by this push:
     new 001d22d7 m4: Disable chained fixups for macOS
001d22d7 is described below

commit 001d22d7d587e85a911c71c4d0c798ede8014b77
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Thu Jun 20 16:57:26 2024 +0300

    m4: Disable chained fixups for macOS
    
    * m4/libtool.m4: Append '-no_fixup_chains' flag to disable chained
      fixups since it is not compatible with '-undefined dynamic_lookup'.
    * NO-THANKS: Add thanks for Carlo Cabrera and Dave Allured.
---
 NO-THANKS     |  2 ++
 m4/libtool.m4 | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/NO-THANKS b/NO-THANKS
index 6b6a2415..9e0264bb 100644
--- a/NO-THANKS
+++ b/NO-THANKS
@@ -75,12 +75,14 @@ Andreas Stieger		[email protected]
 Brent Leback			[email protected]
 Camilo La Rota			[email protected]
 Carl D. Roth			[email protected]
+Carlo Cabrera			[email protected]
 Chris P. Ross			[email protected]
 Christian Rössel		[email protected]
 Christopher Hulbert		[email protected]
 Craig Tierney			[email protected]
 Dan McMahill			[email protected]
 Daniel Richard G.		[email protected]
+Dave Allured			[email protected]
 Dave Yost			[email protected]
 Dimitri Papadopoulos		[email protected]
 Donn Washburn			[email protected]
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 1187330a..a1fcdf7a 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1069,12 +1069,30 @@ _LT_EOF
     darwin1.*)
       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
     darwin*)
+      # $MACOSX_DEPLOYMENT_TARGET seems to be deprecated as a darwin
+      # environment variable
       case $MACOSX_DEPLOYMENT_TARGET,$host in
         10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
         *)
           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
       esac
+      # Disable chained fixups since it is not compatible with
+      # '-undefined dynamic_lookup'
+      macos_version=`sw_vers -productVersion`
+      case $macos_version in
+        11.[[3-7]]*|1[[2-4]]*)
+          xcode_version=`pkgutil --pkg-info=com.apple.pkg.CLTools_Executables`
+          case $xcode_version in
+            *version:\ 1[[3-5]]*)
+              _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup $wl-no_fixup_chains' ;;
+            *)
+            ;;
+          esac
+        ;;
+        *)
+        ;;
+      esac
     ;;
   esac
     if test yes = "$lt_cv_apple_cc_single_mod"; then
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.