[packages/golang] don't use sse2 on i686

atler atler at pld-linux.org
Mon Feb 28 23:38:36 CET 2022


commit 75c1e8a50d56a92831b2ee44517cc3d4d3945957
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Feb 28 23:38:02 2022 +0100

    don't use sse2 on i686

 golang.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/golang.spec b/golang.spec
index b3be105..650fd3b 100644
--- a/golang.spec
+++ b/golang.spec
@@ -160,6 +160,13 @@ export GOHOSTARCH=%{GOARCH}
 export GOOS=linux
 export GOARCH=%{GOARCH}
 %{?GOARM:export GOARM=%{GOARM}}
+%ifarch %{ix86}
+%ifarch %{x86_with_sse2}
+export GO386=sse2
+%else
+export GO386=softfloat
+%endif
+%endif
 %if %{without ext_linker}
 export GO_LDFLAGS="-linkmode internal"
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/golang.git/commitdiff/75c1e8a50d56a92831b2ee44517cc3d4d3945957



More information about the pld-cvs-commit mailing list