From 4b2a2615cbb14c7297707104789a5983f7f1bada Mon Sep 17 00:00:00 2001 From: Andrey Korolyov Date: Wed, 11 Sep 2019 15:49:20 +0300 Subject: [PATCH] i386/linux: don't build binary with sse The vast majority of today's x86 routers are amd64-based, and the rest are probably either very old computers or specialized hardware such as PCEngines' ALIX series. For Go language, adding GO386=387 disables SSE optimizations made by a compiler, effectively allowing binary to run on old CPUs such as SC1100 or Geode LX. --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index fff4ebfc..748e407a 100755 --- a/release.sh +++ b/release.sh @@ -36,7 +36,7 @@ mkdir -p $dst # Prepare releases CHANNEL=$channel GOOS=darwin GOARCH=amd64 f CHANNEL=$channel GOOS=linux GOARCH=amd64 f -CHANNEL=$channel GOOS=linux GOARCH=386 f +CHANNEL=$channel GOOS=linux GOARCH=386 GO386=387 f CHANNEL=$channel GOOS=linux GOARCH=arm GOARM=6 f CHANNEL=$channel GOOS=linux GOARCH=arm64 GOARM=6 f CHANNEL=$channel GOOS=windows GOARCH=amd64 f