]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
m4: Disable chained fixups for macOS
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 20 Jun 2024 13:57:26 +0000 (16:57 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 21 Jun 2024 16:38:14 +0000 (19:38 +0300)
* 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
m4/libtool.m4

index 6b6a24153553d6a790b46fcd97c1235d96f1a651..9e0264bbdb134f8759d8831acb2c848fb4976334 100644 (file)
--- a/NO-THANKS
+++ b/NO-THANKS
@@ -75,12 +75,14 @@ Andreas Stieger             Andreas.Stieger@gmx.de
 Brent Leback                   brent.leback@st.com
 Camilo La Rota                 camilo.larota@ens-lyon.fr
 Carl D. Roth                   roth@cse.ucsc.edu
+Carlo Cabrera                  carlo.antonio.cabrera@gmail.com
 Chris P. Ross                  cross@eng.us.uu.net
 Christian Rössel              christian.roessel@gmx.de
 Christopher Hulbert            cchgroupmail@gmail.com
 Craig Tierney                  Craig.Tierney@noaa.gov
 Dan McMahill                   mcmahill@mtl.mit.edu
 Daniel Richard G.              skunk@iSKUNK.ORG
+Dave Allured                   dave.allured@noaa.gov
 Dave Yost                      Dave@Yost.com
 Dimitri Papadopoulos           dpo@sfr.fr
 Donn Washburn                  n5xwb@comcast.net
index 1187330a155b843002e8a783ae8f3d2a2129abd8..a1fcdf7aeec317a00a6a082c33026b307b0485f8 100644 (file)
@@ -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