From 04043e0ceaac61e00462fdd582bf910c246d741a Mon Sep 17 00:00:00 2001 From: Guoguo Date: Tue, 7 Nov 2023 01:31:22 +0000 Subject: [PATCH] Fix build on riscv64 Signed-off-by: Guoguo --- lldb.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb.spec b/lldb.spec index 50c631a..2bcedde 100644 --- a/lldb.spec +++ b/lldb.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global toolchain clang %undefine _include_frame_pointers @@ -59,7 +59,11 @@ The %{name}-doc package contains documentation files for %{name}. %autosetup -n %{name}-%{version}.src -p2 %build +%ifarch riscv64 +%global _lto_cflags %{nil} +%else %global _lto_cflags -flto=thin +%endif %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -119,6 +123,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.* %doc CODE_OWNERS.txt %changelog +* Tue Nov 7 2023 Guoguo - 16.0.6-2 +- Fix build on riscv64 + * Tue Aug 8 2023 Funda Wang - 16.0.6-1 - New version 16.0.6 -- Gitee