From b2cb9baf19ba99c399ff2ab5bf675c7292cac86d Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Tue, 25 Apr 2023 18:37:18 +0800 Subject: [PATCH] Fix clang build error --- elfutils.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/elfutils.spec b/elfutils.spec index cb7445f..9af6b85 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,7 +1,7 @@ # -*- rpm-spec from http://elfutils.org/ -*- Name: elfutils Version: 0.187 -Release: 11 +Release: 12 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data URL: http://elfutils.org/ License: GPLv3+ and (GPLv2+ or LGPLv3+) @@ -185,6 +185,11 @@ such servers to download those files on demand. %patch7 -p1 %build +%if "%toolchain" == "clang" + CFLAGS="$CFLAGS -Wno-error=gnu-variable-sized-type-not-at-end -Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter" + CXXFLAGS="$CXXFLAGS -Wno-error=unused-const-variable" +%endif + %configure --program-prefix=%{_programprefix} %make_build @@ -332,6 +337,12 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Tue Apr 25 2023 jammyjellyfish - 0.187-12 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Fix clang build error + * Fri Mar 10 2023 yixiangzhike - 0.187-11 - Type:bugfix - CVE:NA -- Gitee