From ddf13a4aa91db76839e0a39abbb13db0833a80ff Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 21 Apr 2020 20:17:50 +0200 Subject: [PATCH] fix build without debuginfod --- elfutils.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elfutils.spec b/elfutils.spec index 8c54292..5821ba9 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -206,6 +206,7 @@ Plik nagłówkowy biblioteki debuginfod. %configure \ --disable-silent-rules \ --disable-werror \ + %{__enable_disable debuginfod} \ --program-prefix=%{programprefix} # make check depends on test-nlist not stripped @@ -292,6 +293,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libdw.a %{_libdir}/libelf.a +%if %{with debuginfod} %files debuginfod %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libdebuginfod-*.so @@ -307,3 +309,4 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/elfutils/debuginfod.h %{_pkgconfigdir}/libdebuginfod.pc %{_mandir}/man3/debuginfod_*.3* +%endif -- 2.43.0