diff --git a/libcxx.spec b/libcxx.spec index 968e816..d0800de 100644 --- a/libcxx.spec +++ b/libcxx.spec @@ -1,8 +1,6 @@ # If you need to bootstrap this, turn this on. # Otherwise, you have a loop with libcxxabi -%ifnarch riscv64 %global toolchain clang -%endif %global bootstrap 0 %global libcxx_version 15.0.4 @@ -71,6 +69,10 @@ Summary: Static libraries for libcxx %build +%ifarch riscv64 +%define _lto_cflags %{nil} +%endif + # The location of this header changed. if [[ -f %{_includedir}/cxxabi.h ]]; then LIBCXX_ABI_PATH=%{_includedir} @@ -163,7 +165,7 @@ install -m 0644 src/include/*.h %{buildroot}%{_includedir}/libcxx-internal/ %changelog * Sun Nov 27 2022 David Abdurachmanov - 15.0.4-1.0.riscv664 -- Build for riscv64 +- Build for riscv64 (disable LTO) * Tue Nov 08 2022 Nikita Popov - 15.0.4-1 - Update to LLVM 15.0.4