Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/go/go-x87.patch
blob: 96da987ce96f1c1d517ba664eb2adbbee57ba4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- go/src/buildall.bash	2024-03-29 15:27:02.000000000 +0000
+++ buildall.bash	2024-04-07 22:22:43.457800687 +0000
@@ -42,6 +42,7 @@
 gettargets() {
 	../bin/go tool dist list | sed -e 's|/|-|' |
 		egrep -v '^(android|ios)' # need C toolchain even for cross-compiling
+	echo linux-386-387
 	echo linux-arm-arm5
 }
 
@@ -68,11 +69,15 @@
 	echo "### Building $target"
 	export GOOS=$(echo $target | sed 's/-.*//')
 	export GOARCH=$(echo $target | sed 's/.*-//')
-	unset GOARM
+	unset GO386 GOARM
 	if [ "$GOARCH" = "arm5" ]; then
 		export GOARCH=arm
 		export GOARM=5
 	fi
+	if [ "$GOARCH" = "387" ]; then
+		export GOARCH=386
+		export GO386=387
+	fi
 
 	# Build and vet everything.
 	# cmd/go/internal/work/exec.go enables the same vet flags during go test of std cmd