diff --git a/golang.spec b/golang.spec index 85b8f70..07c949a 100644 --- a/golang.spec +++ b/golang.spec @@ -506,6 +506,10 @@ export GO_LDFLAGS="-linkmode internal" %if !%{cgo_enabled} || !%{external_linker} export CGO_ENABLED=0 %endif +# workaround for https://github.com/golang/go/issues/39466 until it gests fixed +%ifarch aarch64 +export CGO_CFLAG="-mno-outline-atomics" +%endif # make sure to not timeout export GO_TEST_TIMEOUT_SCALE=2