diff --git a/golang.spec b/golang.spec index 72e5fe0..e72b949 100644 --- a/golang.spec +++ b/golang.spec @@ -444,6 +444,12 @@ export GO_LDFLAGS="-extldflags '$RPM_LD_FLAGS'" export CGO_ENABLED=0 %endif +# work around aarch64 issue +# https://src.fedoraproject.org/rpms/golang/c/ea99ebaff6b9561243bb43039458771edb691eaf?branch=f32 +%ifarch aarch64 +export CGO_CFLAGS="-mno-outline-atomics" +%endif + # make sure to not timeout export GO_TEST_TIMEOUT_SCALE=2