This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[PATCH] Do not install libdebuginfod.pc unless debuginfod is enabled
- From: "Dmitry V. Levin" <ldv at altlinux dot org>
- To: elfutils-devel at sourceware dot org
- 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 <ldv@altlinux.org>
---
config/ChangeLog | 5 +++++
config/Makefile.am | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/config/ChangeLog b/config/ChangeLog
index cc4187bf..2296e815 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-01 Dmitry V. Levin <ldv@altlinux.org>
+
+ * Makefile.am (pkgconfig_DATA): Conditionalize libdebuginfod.pc
+ on DEBUGINFOD.
+
2019-12-22 Frank Ch. Eigler <fche@redhat.com>
* elfutils.spec.in (debuginfod): Add BuildRequire dpkg
diff --git a/config/Makefile.am b/config/Makefile.am
index 55e895ac..11f17df0 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
--
ldv