From c549232e1aa96bec1432b1ff192ee3dfe2335051 Mon Sep 17 00:00:00 2001 From: Yanase Yuki Date: Mon, 20 May 2024 17:59:53 +0900 Subject: [PATCH] use clang to fix runtime error --- monero.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/monero.spec b/monero.spec index d8c1b6f..5165ccf 100644 --- a/monero.spec +++ b/monero.spec @@ -17,8 +17,7 @@ BuildRequires: coreutils BuildRequires: gnupg2 BuildRequires: cmake -BuildRequires: gcc -BuildRequires: gcc-c++ +BuildRequires: clang BuildRequires: pkgconf BuildRequires: boost-devel BuildRequires: libsodium-devel @@ -72,6 +71,9 @@ fi %autosetup -n %{name}-source-v%{version} %build +# use clang because gcc 14 seems broken +export CC=clang +export CXX=clang++ %make_build release %install @@ -104,6 +106,7 @@ install -m 0755 build/release/bin/* %{buildroot}%{_bindir}/ %changelog * Mon May 20 2024 zpc - remove broken patch +- use clang to fix runtime error * Sun May 19 2024 zpc - try to fix runtime error - print build host cpu info to debug problems