diff --git a/golang.spec b/golang.spec index 0ced442..087b253 100644 --- a/golang.spec +++ b/golang.spec @@ -344,6 +344,11 @@ rm -rf src/crypto/internal/boring/syso popd %endif +%ifarch x86_64_v2 +sed -i 's/^GOAMD64=v3$/GOAMD64=v2/' ./go.env +grep -q '^GOAMD64=v2$' ./go.env +%endif + %build # -x: print commands as they are executed # -e: exit immediately if a command exits with a non-zero status