From 78e8cd5420d5bd9c850bef6c5df400c9bd62abe834a2cd64855b9e65d87b475a Mon Sep 17 00:00:00 2001 From: Guillaume Gardet Date: Mon, 3 Feb 2025 09:55:43 +0100 Subject: [PATCH] Fix build on 32-bit arm with a workaround --- glusterfs.changes | 5 +++++ glusterfs.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/glusterfs.changes b/glusterfs.changes index b33fd48..28274d8 100644 --- a/glusterfs.changes +++ b/glusterfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 3 08:37:11 UTC 2025 - Guillaume GARDET + +- Fix build on 32-bit arm with a workaround + ------------------------------------------------------------------- Fri Jan 24 08:00:04 UTC 2025 - Daniel Garcia diff --git a/glusterfs.spec b/glusterfs.spec index 5c3bc82..545fb07 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -152,6 +152,10 @@ rm contrib/aclocal/python.m4 %build %define _lto_cflags %nil +%ifarch %{arm} +# https://github.com/gluster/glusterfs/issues/2979#issuecomment-976739179 +export CFLAGS="%{optflags} -DUATOMIC_NO_LINK_ERROR" +%endif ./autogen.sh %configure \ --without-tcmalloc \