pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc12 gcc12: Support Darwin/aarch64.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0a924958cc28
branches:  trunk
changeset: 389593:0a924958cc28
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Dec 06 14:23:02 2022 +0000

description:
gcc12: Support Darwin/aarch64.

diffstat:

 lang/gcc12/Makefile |  11 ++++++++++-
 lang/gcc12/distinfo |   5 ++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 1af85c761415 -r 0a924958cc28 lang/gcc12/Makefile
--- a/lang/gcc12/Makefile       Tue Dec 06 14:05:09 2022 +0000
+++ b/lang/gcc12/Makefile       Tue Dec 06 14:23:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2022/08/22 12:16:15 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2022/12/06 14:23:02 jperkin Exp $
 
 GCC_PKGNAME=           gcc12
 .include               "version.mk"
@@ -46,6 +46,7 @@
 UNLIMIT_RESOURCES+=    stacksize
 
 CHECK_PORTABILITY_SKIP+=       contrib/*
+CHECK_PORTABILITY_SKIP+=       gcc/configure.orig_dist
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -77,6 +78,14 @@
 
 .include "options.mk"
 
+.if ${MACHINE_PLATFORM:MDarwin-*-aarch64}
+BUILDLINK_TRANSFORM+=  rm:-nodefaultrpaths
+CONFIGURE_ARGS+=       --disable-darwin-at-rpath
+PATCHFILES=            gcc-12.2.0-arm.diff
+PATCH_SITES=           https://raw.githubusercontent.com/Homebrew/formula-patches/1d184289/gcc/
+PATCH_DIST_STRIP=      -p1
+.endif
+
 ## For graphite support.
 .if !empty(PKG_OPTIONS:Mgcc-graphite)
 
diff -r 1af85c761415 -r 0a924958cc28 lang/gcc12/distinfo
--- a/lang/gcc12/distinfo       Tue Dec 06 14:05:09 2022 +0000
+++ b/lang/gcc12/distinfo       Tue Dec 06 14:23:02 2022 +0000
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.2 2022/08/22 12:16:15 wiz Exp $
+$NetBSD: distinfo,v 1.3 2022/12/06 14:23:02 jperkin Exp $
 
+BLAKE2s (gcc-12.2.0-arm.diff) = a39143ad6349cf5153954c2c1398cb3e33b586215a17836af017c3894d57dc30
+SHA512 (gcc-12.2.0-arm.diff) = 3061a8a990f2f7b31f1daf30ea0ddabcfe68f0f01b2d8dcf7cbb4ab1cd559d86fd38a453613128e35d0e78a14199ff3848b3ca007349ebe2ff420beb12468638
+Size (gcc-12.2.0-arm.diff) = 616315 bytes
 BLAKE2s (gcc-12.2.0.tar.xz) = aca782fc46f75c32dc223ba8715cb46001658574431235822ce4e68361c58305
 SHA512 (gcc-12.2.0.tar.xz) = e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
 Size (gcc-12.2.0.tar.xz) = 84645292 bytes



Home | Main Index | Thread Index | Old Index