diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compat/Makefile.am | 3 | ||||
-rw-r--r-- | lib/dpkg/Makefile.am | 4 | ||||
-rw-r--r-- | lib/dpkg/libdpkg.pc.in | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/compat/Makefile.am b/lib/compat/Makefile.am index fa20fe405..981dc8128 100644 --- a/lib/compat/Makefile.am +++ b/lib/compat/Makefile.am @@ -32,8 +32,9 @@ libcompat_la_SOURCES = \ compat.h \ gettext.h -# FIXME: unconditionally include these for now. +if !HAVE_LIBMD_MD5 libcompat_la_SOURCES += md5.c md5.h +endif if !HAVE_GETOPT libcompat_la_SOURCES += getopt.c getopt.h diff --git a/lib/dpkg/Makefile.am b/lib/dpkg/Makefile.am index 987a30638..ad3b97120 100644 --- a/lib/dpkg/Makefile.am +++ b/lib/dpkg/Makefile.am @@ -23,10 +23,12 @@ pkgconfig_DATA = libdpkg.pc lib_LTLIBRARIES = libdpkg.la +libdpkg_la_LDFLAGS = if HAVE_LINKER_VERSION_SCRIPT -libdpkg_la_LDFLAGS = \ +libdpkg_la_LDFLAGS += \ -Wl,--version-script=$(srcdir)/libdpkg.map endif +libdpkg_la_LDFLAGS += $(MD_LIBS) libdpkg_la_LIBADD = \ ../compat/libcompat.la if BUILD_SHARED diff --git a/lib/dpkg/libdpkg.pc.in b/lib/dpkg/libdpkg.pc.in index d0b099ff6..3adc2fd91 100644 --- a/lib/dpkg/libdpkg.pc.in +++ b/lib/dpkg/libdpkg.pc.in @@ -7,5 +7,5 @@ Name: libdpkg Description: Debian package management system library Version: @VERSION@ Libs: -L${libdir} -ldpkg -Libs.private: @ZLIB_LIBS@ @LIBLZMA_LIBS@ @BZ2_LIBS@ +Libs.private: @MD_LIBS@ @ZLIB_LIBS@ @LIBLZMA_LIBS@ @BZ2_LIBS@ Cflags: -I${includedir} |