fix riscv build

This commit is contained in:
Alexander Stefanov 2023-02-06 17:03:54 +00:00
parent 167278795a
commit 157420e33f

View file

@ -94,6 +94,10 @@ sed -i -e 's,c99,gnu2a,g' build/cmake/CMakeModules/AddZstdCompilationFlags.cmake
%build %build
%set_build_flags %set_build_flags
%ifarch %{riscv}
export LDFLAGS="%{ldflags} -latomic"
%endif
pushd build/cmake pushd build/cmake
%cmake -DZSTD_BUILD_CONTRIB:BOOL=ON \ %cmake -DZSTD_BUILD_CONTRIB:BOOL=ON \
-DZSTD_LEGACY_SUPPORT:BOOL=ON \ -DZSTD_LEGACY_SUPPORT:BOOL=ON \