From c63cc0859034aaabaaf474745836cfffe38973a4 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 17 Oct 2022 19:14:46 +0300 Subject: [PATCH] Try to link to libatomic Signed-off-by: David Abdurachmanov --- nfs-ganesha.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec index 9cf890e..126a6c2 100644 --- a/nfs-ganesha.spec +++ b/nfs-ganesha.spec @@ -551,6 +551,10 @@ cd src && %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DRPCBIND=%{use_rpcbind} \ -D_MSPAC_SUPPORT=%{use_mspac_support} \ -DSANITIZE_ADDRESS=%{use_sanitize_address} \ + -DSYSTEM_LIBRARIES="-latomic" \ +%ifarch riscv64 + -DTHREADS_PREFER_PTHREAD_FLAG:BOOL=YES \ +%endif %ifarch x86_64 aarch64 -DCMAKE_LINKER=%{_bindir}/ld.mold \ %endif