From 57b82116a88193ca797e3a73577d20bb74aea81c Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Tue, 2 Apr 2024 14:12:00 +0800 Subject: [PATCH] Support ccache compile to fix build error (cherry picked from commit 025ef72b9974d6dab28db0e139dc18385a0d5103) --- ocaml.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ocaml.spec b/ocaml.spec index 2a9252f..45147c1 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -13,7 +13,7 @@ Name: ocaml Version: 4.14.1 -Release: 1 +Release: 2 Summary: OCaml compiler and programming environment License: LGPL-2.1-only URL: http://www.ocaml.org @@ -82,9 +82,9 @@ autoconf --force %build -export CC='gcc' +export CC='ccache gcc' export AS='as' -test -x "$(type -P gcc | xargs readlink -f)" && export CC="$_" +test -x "$(type -P {ccache,gcc} | xargs readlink -f)" && export CC="$_" test -x "$(type -P as | xargs readlink -f)" && export AS="$_" export ASPP="$CC -c" configure_target= @@ -248,6 +248,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata %{_mandir}/man3/* %changelog +* Tue Apr 02 2024 yaoxin - 4.14.1-2 +- Support ccache compile to fix build error + * Fri Feb 2 2024 Jingwiw - 4.14.1-1 - Upgrade version to 4.14.1 -- Gitee