summaryrefslogtreecommitdiff
path: root/system/gcc/libgo-musl-1.2.3.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-04-20 13:10:25 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-05-01 17:05:59 -0500
commit74fabc87ce38872dc54463345f94c8aeed64970b (patch)
tree5d8b63c4e6736c8a2599a9dfc5084b0e5d41b6f6 /system/gcc/libgo-musl-1.2.3.patch
parent5c42b3c96342350f65799bccea8b22a93b6f09bc (diff)
downloadpackages-74fabc87ce38872dc54463345f94c8aeed64970b.tar.gz
packages-74fabc87ce38872dc54463345f94c8aeed64970b.tar.bz2
packages-74fabc87ce38872dc54463345f94c8aeed64970b.tar.xz
packages-74fabc87ce38872dc54463345f94c8aeed64970b.zip
system/gcc: add patch for libgo w/ musl 1.2.3. fixes #539.
Diffstat (limited to 'system/gcc/libgo-musl-1.2.3.patch')
-rw-r--r--system/gcc/libgo-musl-1.2.3.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/gcc/libgo-musl-1.2.3.patch b/system/gcc/libgo-musl-1.2.3.patch
new file mode 100644
index 000000000..15a4229f4
--- /dev/null
+++ b/system/gcc/libgo-musl-1.2.3.patch
@@ -0,0 +1,13 @@
+diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
+index 6fef104..06289a4 100755
+--- a/libgo/mksysinfo.sh
++++ b/libgo/mksysinfo.sh
+@@ -126,7 +126,7 @@ if ! grep '^const SIGCLD ' ${OUT} >/dev/null 2>&1; then
+ fi
+
+ # The syscall numbers. We force the names to upper case.
+-grep '^const _SYS_' gen-sysinfo.go | \
++grep '^const _SYS_[a-z]' gen-sysinfo.go | \
+ sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
+ while read sys; do
+ sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`