diff --git a/nheko.spec b/nheko.spec index 84fb35c..1617b34 100644 --- a/nheko.spec +++ b/nheko.spec @@ -8,6 +8,10 @@ %if %{with clang} %global toolchain clang +# https://bugzilla.redhat.com/show_bug.cgi?id=1918924 +%ifarch %{arm} +%global _lto_cflags %{nil} +%endif %endif Name: nheko @@ -91,15 +95,6 @@ for Matrix that feels more like a mainstream chat app. %build %cmake -G Ninja \ -%if %{with clang} - -DCMAKE_C_COMPILER=%{_bindir}/clang \ - -DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \ - -DCMAKE_AR=%{_bindir}/llvm-ar \ - -DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \ - -DCMAKE_LINKER=%{_bindir}/llvm-ld \ - -DCMAKE_OBJDUMP=%{_bindir}/llvm-objdump \ - -DCMAKE_NM=%{_bindir}/llvm-nm \ -%endif -DCMAKE_BUILD_TYPE=Release \ -DCOMPILE_QML:BOOL=OFF \ -DHUNTER_ENABLED:BOOL=OFF \