commit:     f0a132d3a17ee1ab20d135e8e99ea691ad50e536
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 20 14:13:18 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Feb 20 14:13:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f0a132d3

sys-devel/gcc-10.2.0-r5: fix build on darwin19 (10.15)

For some reason on Catalina (10.15) the build fails with binutils-apple
on not finding dylib1.o.  The same problem doesn't exist on 10.13, nor
11.0, so simply up the minimum macOS version from 10.4 to 10.6 where
dylib1.o is included in libSystem.

Closes: https://bugs.gentoo.org/767415
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/gcc/gcc-10.2.0-r5.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc/gcc-10.2.0-r5.ebuild 
b/sys-devel/gcc/gcc-10.2.0-r5.ebuild
index 359513628c..f146759e09 100644
--- a/sys-devel/gcc/gcc-10.2.0-r5.ebuild
+++ b/sys-devel/gcc/gcc-10.2.0-r5.ebuild
@@ -43,6 +43,11 @@ src_prepare() {
                        libgcc/config/t-slibgcc-darwin || die
        fi
 
+       # up macosx-version-min from 10.4 to 10.6 on Catalina, bug #767415
+       if [[ ${CHOST} == *-darwin19 ]] ; then
+               sed -i -e 's/=10.4/=10.6/' libgcc/config/t-darwin || die
+       fi
+
        # fix for Big Sur versioning, remove with 11
        eapply -p1 "${FILESDIR}"/${PN}-10.1.0-macos-bigsur.patch
        find .  -name "configure" | xargs \
@@ -68,7 +73,7 @@ src_configure() {
                        export gcc_cv_c_no_fpie=no
                        export gcc_cv_no_pie=no
                ;;
-               *-darwin19|*-darwin20)
+               *-darwin20)
                        # use sysroot with the linker, #756160
                        export gcc_cv_ld_sysroot=yes
                        ;;

Reply via email to