From fed3c3ceeaa6aef0c94932ea2636bc0070fefd00 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 2 Jan 2020 02:42:10 +0300 Subject: [PATCH] Do not install libdebuginfod.pc unless debuginfod is enabled Fixes: 288f6b199 ("debuginfod 1/2: client side") Signed-off-by: Dmitry V. Levin --- config/ChangeLog | 5 +++++ config/Makefile.am | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/ChangeLog b/config/ChangeLog index cc4187b..2296e81 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2020-01-01 Dmitry V. Levin + + * Makefile.am (pkgconfig_DATA): Conditionalize libdebuginfod.pc + on DEBUGINFOD. + 2019-12-22 Frank Ch. Eigler * elfutils.spec.in (debuginfod): Add BuildRequire dpkg diff --git a/config/Makefile.am b/config/Makefile.am index 55e895a..11f17df 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -33,7 +33,10 @@ EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \ debuginfod.service debuginfod.sysconfig pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libelf.pc libdw.pc libdebuginfod.pc +pkgconfig_DATA = libelf.pc libdw.pc +if DEBUGINFOD +pkgconfig_DATA += libdebuginfod.pc +endif if MAINTAINER_MODE $(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS -- 2.7.4