From: Serhei Makarov Date: Wed, 10 Jun 2026 17:34:13 +0000 (-0400) Subject: config/elfutils.spec.in: update for stackprof X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6235922e1896fc0080a797e0be6873dcc0469ba7;p=thirdparty%2Felfutils.git config/elfutils.spec.in: update for stackprof --- diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in index cbbc5433..716831df 100644 --- a/config/elfutils.spec.in +++ b/config/elfutils.spec.in @@ -7,11 +7,11 @@ License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL Source: ftp://sourceware.org/pub/elfutils/%{version}/elfutils-%{version}.tar.bz2 Summary: A collection of utilities and DSOs to handle ELF files and DWARF data -# eu-stacktrace currently only supports x86_64 -%ifarch x86_64 -%global enable_stacktrace 1 +# eu-stackprof currently only supports x86/ARM +%ifarch %{all_x86} %{arm} +%global enable_stackprof 1 %else -%global enable_stacktrace 0 +%global enable_stackprof 0 %endif Requires: elfutils-libelf = %{version}-%{release} @@ -60,9 +60,9 @@ BuildRequires: ima-evm-utils-devel BuildRequires: openssl-devel BuildRequires: rpm-sign -# For eu-stacktrace -%if %{enable_stacktrace} -BuildRequires: sysprof-capture-devel +# For eu-stackprof +%if %{enable_stackprof} +BuildRequires: libpfm-devel %endif %define _gnu %{nil} @@ -212,9 +212,6 @@ such servers to download those files on demand. %configure --program-prefix=%{_programprefix} \ --enable-debuginfod \ --enable-debuginfod-urls=https://debuginfod.elfutils.org/ \ -%if %{enable_stacktrace} - --enable-stacktrace \ -%endif --enable-debuginfod-ima-verification make -s %{?_smp_mflags} @@ -277,8 +274,8 @@ fi %{_bindir}/eu-size %{_bindir}/eu-srcfiles %{_bindir}/eu-stack -%if %{enable_stacktrace} -%{_bindir}/eu-stacktrace +%if %{enable_stackprof} +%{_bindir}/eu-stackprof %endif %{_bindir}/eu-strings %{_bindir}/eu-strip