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 \