The following commit has been merged in the master branch:
commit ad176b184b8c39daea7f9f4bd1c162a67934c0d8
Author: Guillem Jover <[email protected]>
Date:   Sun Sep 25 03:16:56 2011 +0200

    libdpkg: Link unit tests with libcompat and libintl
    
    Because the unit tests might end up pulling arbitrary libdpkg modules,
    we need to link to these libraries in case they are needed on the
    system.

diff --git a/debian/changelog b/debian/changelog
index 675413b..a53d077 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ dpkg (1.16.2) UNRELEASED; urgency=low
     use the configured features and compat code.
   * Honour --disable-nls when the system lacks obstack support, by updating
     the obstack compat module from gnulib.
+  * Link the libdpkg unit tests with libcompat and libintl, so that systems
+    needing them will compile correctly.
 
   [ Updated man page translations ]
   * German (Helge Kreutzmann).
diff --git a/lib/dpkg/test/Makefile.am b/lib/dpkg/test/Makefile.am
index 0795a78..24fd66e 100644
--- a/lib/dpkg/test/Makefile.am
+++ b/lib/dpkg/test/Makefile.am
@@ -5,7 +5,10 @@ AM_CPPFLAGS = \
        -idirafter $(top_srcdir)/lib/compat \
        -I$(top_builddir) \
        -I$(top_srcdir)/lib
-LDADD = ../libdpkg.a
+LDADD = \
+       $(top_builddir)/lib/dpkg/libdpkg.a \
+       $(top_builddir)/lib/compat/libcompat.a \
+       $(LIBINTL)
 
 
 # The tests are sorted in order of increasing complexity.

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to