This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=74354a592ad1d88c1b56c245b34bddbacd56d573

commit 74354a592ad1d88c1b56c245b34bddbacd56d573
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Fri Dec 10 06:44:10 2021 +0100

    build: Link all programs against libcompat
    
    The libcompat library gets linked into libdpkg, and that works fine as
    long as it is built only as a static library, because then any of the
    libdpkg users in the project will pull in any required object from
    there. But when libdpkg is built as a shared library, then libtool
    does not even include it as a dependency in its .la tracking files.
    And the visibility rules in the shared library will not expose any of
    the libcompat symbols, so we need to link against it explicitly.
    
    Prompted-by: Jörg Sonnenberger <jo...@netbsd.org>
---
 dselect/Makefile.am  | 1 +
 lib/dpkg/Makefile.am | 1 +
 src/Makefile.am      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/dselect/Makefile.am b/dselect/Makefile.am
index 6362a61f5..ebf8c7616 100644
--- a/dselect/Makefile.am
+++ b/dselect/Makefile.am
@@ -54,6 +54,7 @@ dselect_LDADD = \
        $(CURSES_LIBS) \
        ../lib/dpkg/libdpkg.la \
        $(LIBINTL) \
+       ../lib/compat/libcompat.la \
        # EOL
 
 
diff --git a/lib/dpkg/Makefile.am b/lib/dpkg/Makefile.am
index 3735736de..1fa404687 100644
--- a/lib/dpkg/Makefile.am
+++ b/lib/dpkg/Makefile.am
@@ -14,6 +14,7 @@ AM_CPPFLAGS = \
 LDADD = \
        libdpkg.la \
        $(LIBINTL) \
+       ../compat/libcompat.la \
        # EOL
 
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 8ebaba88c..cac4c206b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,6 +16,7 @@ AM_CPPFLAGS = \
 LDADD = \
        ../lib/dpkg/libdpkg.la \
        $(LIBINTL) \
+       ../lib/compat/libcompat.la \
        # EOL
 
 

-- 
Dpkg.Org's dpkg

Reply via email to