public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] config: Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD
@ 2020-11-02  8:00 Dmitry V. Levin
  2020-11-03 16:58 ` Mark Wielaard
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dmitry V. Levin @ 2020-11-02  8:00 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Vitaly Chikunov

When elfutils is configured using --enable-libdebuginfod
--disable-debuginfod, that is, when the library is built and installed
but the server is not, it makes sense to install libdebuginfod.pc
because the latter complements the library rather than the server.

Likewise, it makes sense to install profile.d/debuginfod.*sh files
along with libdebuginfod because the library can use DEBUGINFOD_URLS
environment variable as well as the server.

This change does not affect --enable-debuginfod mode as the latter
requires --enable-libdebuginfod.

Fixes: fed3c3ceeaa6 ("Do not install libdebuginfod.pc unless debuginfod is enabled")
Fixes: b503c358dde8 ("Do not install profile.d/debuginfod.*sh files unless debuginfod is enabled")
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 config/ChangeLog   | 5 +++++
 config/Makefile.am | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/config/ChangeLog b/config/ChangeLog
index c532f7e6..e69e7e21 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,8 @@
+2020-11-02  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* Makefile.am (pkgconfig_DATA, install-data-local, uninstall-local):
+	Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD.
+
 2020-10-31  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am (install-data-local, uninstall-local): Conditionalize
diff --git a/config/Makefile.am b/config/Makefile.am
index ef28dab6..a66f5490 100644
--- a/config/Makefile.am
+++ b/config/Makefile.am
@@ -34,7 +34,7 @@ EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libelf.pc libdw.pc
-if DEBUGINFOD
+if LIBDEBUGINFOD
 pkgconfig_DATA += libdebuginfod.pc
 
 install-data-local:

-- 
ldv

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-09 13:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02  8:00 [PATCH] config: Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD Dmitry V. Levin
2020-11-03 16:58 ` Mark Wielaard
2020-11-03 17:07   ` Frank Ch. Eigler
2020-11-03 17:26     ` Mark Wielaard
2020-11-03 17:32       ` Frank Ch. Eigler
2020-11-03 22:20       ` Dmitry V. Levin
2020-11-04 11:47         ` Frank Ch. Eigler
2020-11-04  8:00 ` [PATCH 2/1] config: do not define DEBUGINFOD_URLS environment variable unnecessarily Dmitry V. Levin
2020-11-09 13:31   ` Mark Wielaard
2020-11-09 13:30 ` [PATCH] config: Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).