Try again to disable LTO
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
7248da11ac
commit
d76f964b44
@ -13,6 +13,10 @@
|
|||||||
%global _lto_cflags %{nil}
|
%global _lto_cflags %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch riscv64
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: compiler-rt
|
Name: compiler-rt
|
||||||
Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 2.0.riscv64%{?dist}
|
Release: 2.0.riscv64%{?dist}
|
||||||
@ -50,6 +54,10 @@ instrumentation, and Blocks C language extension.
|
|||||||
%py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize
|
%py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch riscv64
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
||||||
export ASMFLAGS=$CFLAGS
|
export ASMFLAGS=$CFLAGS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user