From 7a9c231c628a4f60cecef2cf4eee49e0f78713eb Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Thu, 20 Apr 2023 16:52:06 +0800 Subject: [PATCH] Fix clang build error --- ltrace.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ltrace.spec b/ltrace.spec index a6e2a8f..44f3038 100644 --- a/ltrace.spec +++ b/ltrace.spec @@ -1,6 +1,6 @@ name: ltrace Version: 0.7.91 -Release: 32 +Release: 33 Summary: Trace the Library and System Calls a Program Makes License: GPLv2+ @@ -59,6 +59,11 @@ Help document for the ltrace package. %build autoreconf -i + +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=enum-conversion -Wno-error=string-plus-int" +%endif + %configure --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} %make_build @@ -78,6 +83,9 @@ autoreconf -i %{_mandir}/man5/ltrace.conf.5* %changelog +* Thu Apr 20 2023 jammyjellyfish - 0.7.91-33 +- Fix clang build error + * Thu Dec 15 2022 Hui Li - 0.7.91-32 - Add suppot for loongarch -- Gitee