summaryrefslogtreecommitdiff
path: root/lib/compat
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-05-29 20:37:09 +0200
committerGuillem Jover <guillem@debian.org>2015-05-30 02:57:59 +0200
commitd54b2f1ce614d51b6c9d25e9bb6e94557564db5e (patch)
tree72be6325f0d7eea60b8dcb2a98192e1bf7c5e82e /lib/compat
parent07655bd782222b94b84dce2a4200a3a2c04c4d69 (diff)
downloaddpkg-d54b2f1ce614d51b6c9d25e9bb6e94557564db5e.tar.gz
build: Use system libmd if available
This fixes a build failure on at least FreeBSD, and possibly other BSD systems, where the md5.h header provided by libmd maps the md5 functions to namespaced ones, and then there is a mismatch between the always included functions from libcompat and from libmd.
Diffstat (limited to 'lib/compat')
-rw-r--r--lib/compat/Makefile.am3
1 files changed, 2 insertions, 1 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