From ea99ebaff6b9561243bb43039458771edb691eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8Cajka?= Date: Thu, 2 Jul 2020 21:35:44 +0200 Subject: [PATCH] Workaround tests failures on aarch64 --- golang.spec | 4 ++++ 1 file changed, 4 insertions(+) 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