Try again to disable LTO

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-04-03 12:45:46 +03:00
parent 7248da11ac
commit d76f964b44
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,10 @@
%global _lto_cflags %{nil}
%endif
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
Name: compiler-rt
Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}
Release: 2.0.riscv64%{?dist}
@ -50,6 +54,10 @@ instrumentation, and Blocks C language extension.
%py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize
%build
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
export ASMFLAGS=$CFLAGS