commit:     f682fed75c79293cebc23e5c0e0d9cf4255dd541
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  5 13:45:55 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Dec  5 13:45:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=f682fed7

darwin20-conf: add patch for detection of newer macOS

Make sure we act like previous release on darwin20, a.k.a. Big Sur 11.0.

Bug: https://bugs.gentoo.org/758473
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 eltpatch.in                 |  4 ++--
 patches/darwin20-conf/2.4.6 | 13 +++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/eltpatch.in b/eltpatch.in
index e12f754..0765d49 100644
--- a/eltpatch.in
+++ b/eltpatch.in
@@ -173,7 +173,7 @@ elibtoolize() {
 
        case ${CHOST} in
                *-aix*)     elt_patches+=" hardcode aixrtl" ;; #213277
-               *-darwin*)  elt_patches+=" darwin-ltconf darwin-ltmain 
darwin-conf" ;;
+               *-darwin*)  elt_patches+=" darwin-ltconf darwin-ltmain 
darwin-conf darwin20-conf" ;;
                *-solaris*) elt_patches+=" sol2-conf sol2-ltmain" ;;
                *-freebsd*) elt_patches+=" fbsd-conf fbsd-ltconf" ;;
                *-hpux*)    elt_patches+=" hpux-conf deplibs hc-flag-ld 
hardcode hardcode-relink relink-prog no-lc" ;;
@@ -400,7 +400,7 @@ elibtoolize() {
                                                fi
                                        done
                                        ;;
-                               mint-conf|gold-conf|sol2-conf)
+                               mint-conf|gold-conf|sol2-conf|darwin20-conf)
                                        ELT_walk_patches "${d}/configure" "${p}"
                                        ret=$?
                                        ;;

diff --git a/patches/darwin20-conf/2.4.6 b/patches/darwin20-conf/2.4.6
new file mode 100644
index 0000000..2a296a4
--- /dev/null
+++ b/patches/darwin20-conf/2.4.6
@@ -0,0 +1,13 @@
+macOS Big Sur is 11.0, Darwin 20, after a long line of 10.X releases.
+
+--- configure
++++ configure
+@@ -1076,7 +1076,7 @@
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+       10.[[012]][[,.]]*)
+         _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined 
${wl}suppress' ;;
+-      10.*)
++      10.*|11.*)
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+       esac
+     ;;

Reply via email to