From 621057f0dc6b657ec9244785ad24ec8a425207df Mon Sep 17 00:00:00 2001 From: ChebyshevTST Date: Thu, 23 Jan 2025 21:40:58 +0800 Subject: [PATCH] Fix building issues with clang --- exim.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/exim.spec b/exim.spec index cbc3e73..f5cd3e6 100644 --- a/exim.spec +++ b/exim.spec @@ -4,7 +4,7 @@ Summary: The exim mail transfer agent Name: exim Version: 4.97.1 -Release: 3 +Release: 4 License: GPLv2+ Url: https://www.exim.org/ @@ -191,8 +191,13 @@ popd export PIC=-fPIC %endif +%if "%toolchain" == "clang" + %global make_opts PERL_CC=clang CC=clang +%endif + + export LDFLAGS="%{?__global_ldflags} %{?_hardened_build:-pie -Wl,-z,relro,-z,now}" -make _lib=%{_lib} FULLECHO= +make %{?make_opts} _lib=%{_lib} FULLECHO= %install mkdir -p $RPM_BUILD_ROOT%{_sbindir} @@ -484,6 +489,9 @@ fi %{_sysconfdir}/cron.daily/greylist-tidy.sh %changelog +* Fri Jan 24 2025 QiuWenjian - 4.97.1-4 +- Fix clang building error + * Tue Jul 9 2024 zhangxianting - 4.97.1-3 - fix CVE-2024-39929 -- Gitee