Package: libpst
Version: 0.5.3-1
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
User: [email protected]
Usertags: no-add-needed

Fix FTBFS with ld --no-add-needed. Note that the attached patch is for version 0.6.41.
diff -u libpst-0.6.41/debian/changelog libpst-0.6.41/debian/changelog
--- libpst-0.6.41/debian/changelog
+++ libpst-0.6.41/debian/changelog
@@ -1,3 +1,9 @@
+libpst (0.6.41-0ubuntu5) natty; urgency=low
+
+  * Fix build failure with DSO link changes (Rob Savoye).
+
+ -- Matthias Klose <[email protected]>  Mon, 11 Oct 2010 10:45:35 +0200
+
 libpst (0.6.41-0ubuntu4) lucid; urgency=low
 
   * debian/rules: Set DEB_AUTO_UPDATE_ACLOCAL explicitly, to fix a build
only in patch2:
unchanged:
--- libpst-0.6.41.orig/debian/patches/06-ld-no-add-needed.patch
+++ libpst-0.6.41/debian/patches/06-ld-no-add-needed.patch
@@ -0,0 +1,20 @@
+--- libpst-0.6.41.orig/src/Makefile.am
++++ libpst-0.6.41/src/Makefile.am
+@@ -76,7 +76,7 @@
+ endif
+ 
+ libpst_la_SOURCES     = $(common_source) $(common_header)
+-libpst_la_LIBADD      = $(LTLIBICONV)
++libpst_la_LIBADD      = $(LTLIBICONV) -lpthread
+ 
+ EXTRA_DIST =
+ if !NEED_XGETOPT
+@@ -88,7 +88,7 @@
+ 
+ # the library search path.
+ lspst_LDADD       = $(all_libraries) $(PSTLIB) $(LTLIBICONV)
+-readpst_LDADD     = $(all_libraries) $(PSTLIB) $(LTLIBICONV) $(REGEXLIB)
++readpst_LDADD     = $(all_libraries) $(PSTLIB) $(LTLIBICONV) $(REGEXLIB) 
-lpthread
+ pst2ldif_LDADD    = $(all_libraries) $(PSTLIB) $(LTLIBICONV)
+ pst2dii_LDADD     = $(all_libraries) $(PSTLIB) $(LTLIBICONV) -lgd
+ dumpblocks_LDADD  = $(all_libraries) $(PSTLIB) $(LTLIBICONV)

Reply via email to