From 919326357b3cdef1d0158a0167b94051a5c0c0d7 Mon Sep 17 00:00:00 2001 From: David Benoit Date: Tue, 17 Nov 2020 16:13:27 -0500 Subject: [PATCH] add aarch64 outline-atomics workaround --- golang.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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