diff options
author | tnn <tnn@pkgsrc.org> | 2022-04-15 16:56:06 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-04-15 16:56:06 +0000 |
commit | e1fd88bd5c90e42eb9a1ea18c196564dc2e03db8 (patch) | |
tree | 1c61827bb48399f58fb5ed909fbc35495653fdec /cross/avr-gcc | |
parent | 8272f5d40acc5dc5feb75b743aeebbb26486cd8e (diff) | |
download | pkgsrc-e1fd88bd5c90e42eb9a1ea18c196564dc2e03db8.tar.gz |
cross/*gcc: kludge in support for Darwin/aarch64 hosts in old GCC packages
Diffstat (limited to 'cross/avr-gcc')
-rw-r--r-- | cross/avr-gcc/distinfo | 3 | ||||
-rw-r--r-- | cross/avr-gcc/patches/patch-gcc_config_host-darwin.c | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/cross/avr-gcc/distinfo b/cross/avr-gcc/distinfo index 21582cff0c4..2077143b06b 100644 --- a/cross/avr-gcc/distinfo +++ b/cross/avr-gcc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.14 2021/11/15 17:22:41 wiz Exp $ +$NetBSD: distinfo,v 1.15 2022/04/15 16:56:07 tnn Exp $ BLAKE2s (gcc-10.3.0.tar.xz) = 6d7c42f9386e5e32a3148122471cb207e5f65d7b5f53b3c9adba2d45a4f28715 SHA512 (gcc-10.3.0.tar.xz) = 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86 Size (gcc-10.3.0.tar.xz) = 76692288 bytes SHA1 (patch-contrib_download__prerequisites) = 16d02e5b026ce052b61eced69cfd6a627fea65f5 +SHA1 (patch-gcc_config_host-darwin.c) = ce5647dfb0bf93e222f30cdad3f00f5a4f633afc SHA1 (patch-gcc_configure) = 613d33d859ec3f108046274d09396aeb344e04cf diff --git a/cross/avr-gcc/patches/patch-gcc_config_host-darwin.c b/cross/avr-gcc/patches/patch-gcc_config_host-darwin.c new file mode 100644 index 00000000000..5c3c95a742a --- /dev/null +++ b/cross/avr-gcc/patches/patch-gcc_config_host-darwin.c @@ -0,0 +1,18 @@ +$NetBSD: patch-gcc_config_host-darwin.c,v 1.1 2022/04/15 16:56:07 tnn Exp $ + +Add host hooks to allow hosting on Darwin/aarch64. +The patch is done differently from the upstream fix in order to be small. +Delete this patch when updating to GCC 12 or later. + +--- gcc/config/host-darwin.c.orig 2021-04-08 11:56:28.000000000 +0000 ++++ gcc/config/host-darwin.c +@@ -78,3 +78,9 @@ darwin_gt_pch_use_address (void *addr, s + + return ret; + } ++ ++#if defined(__aarch64__) ++#include "hosthooks.h" ++#include "hosthooks-def.h" ++const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER; ++#endif |