From 157420e33fe8e36c3f7c24f8767a6f91e30d103c Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Mon, 6 Feb 2023 17:03:54 +0000 Subject: [PATCH] fix riscv build --- zstd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zstd.spec b/zstd.spec index ad0fed5..52c8588 100644 --- a/zstd.spec +++ b/zstd.spec @@ -94,6 +94,10 @@ sed -i -e 's,c99,gnu2a,g' build/cmake/CMakeModules/AddZstdCompilationFlags.cmake %build %set_build_flags +%ifarch %{riscv} +export LDFLAGS="%{ldflags} -latomic" +%endif + pushd build/cmake %cmake -DZSTD_BUILD_CONTRIB:BOOL=ON \ -DZSTD_LEGACY_SUPPORT:BOOL=ON \