From f682fed75c79293cebc23e5c0e0d9cf4255dd541 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 5 Dec 2020 14:45:55 +0100 Subject: 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 --- eltpatch.in | 4 ++-- patches/darwin20-conf/2.4.6 | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 patches/darwin20-conf/2.4.6 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 + ;; -- cgit v1.2.3-65-gdbad