diff --git a/clang.spec b/clang.spec index 4129b8d..d338cd8 100644 --- a/clang.spec +++ b/clang.spec @@ -247,6 +247,11 @@ cd _build %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif +# Workaround for GCC issue +%ifarch riscv64 +export LDFLAGS="${LDFLAGS} -latomic %{__global_ldflags}" +%endif + # -DCMAKE_INSTALL_RPATH=";" is a workaround for llvm manually setting the # rpath of libraries and binaries. llvm will skip the manual setting # if CAMKE_INSTALL_RPATH is set to a value, but cmake interprets this value