From d78d86b38392906335d636236ea106a539d6fe57 Mon Sep 17 00:00:00 2001 From: Jerome Marchand Date: Thu, 24 Oct 2024 18:48:04 +0200 Subject: [PATCH] Pass the proper cflags to plugin compilation CFLAGS isn't passed down to plugin compilation, but EXTRA_CFLAGS is. It should fix the annocheck failure. Resolves: RHEL-33502 Signed-off-by: Jerome Marchand --- libtraceevent.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libtraceevent.spec b/libtraceevent.spec index 546af90..f9b1341 100644 --- a/libtraceevent.spec +++ b/libtraceevent.spec @@ -5,7 +5,7 @@ Name: libtraceevent Version: 1.8.4 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-2.1-only AND LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later Summary: Library to parse raw trace event formats @@ -40,7 +40,7 @@ Development headers of %{name}-libs %build MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl` # Parallel build does not work -make -O -j1 V=1 VERBOSE=1 CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc +make -O -j1 V=1 VERBOSE=1 EXTRA_CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc %install %make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install @@ -64,6 +64,9 @@ rm -rf %{buildroot}/%{_libdir}/libtraceevent.a %{_libdir}/pkgconfig/libtraceevent.pc %changelog +* Thu Oct 24 2024 Jerome Marchand - 1.8.4-2 +- Use EXTRA_CFLAGS to fix annocheck (RHEL-33502) + * Thu Oct 24 2024 Jerome Marchand - 1.8.4-1 - Update to 1.8.4 (RHEL-61627)