]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
config: Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 2 Nov 2020 08:00:00 +0000 (08:00 +0000)
committerMark Wielaard <mark@klomp.org>
Mon, 9 Nov 2020 13:27:31 +0000 (14:27 +0100)
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
config/Makefile.am

index c532f7e684dd475427fc36b07909d9b0f84532b6..e69e7e2147c1250f7c68ba3cecba73cc80da85ce 100644 (file)
@@ -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
index ef28dab6997345925f9e9ff8eda437e2297ccab9..a66f54904991bddb672c96b1afac26fa9c8b186e 100644 (file)
@@ -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: