Here is the patch.

Samuel
diff -ur pam-1.1.8/debian/changelog pam-1.1.8.mine/debian/changelog
--- pam-1.1.8/debian/changelog  2014-04-07 23:48:22.000000000 +0000
+++ pam-1.1.8.mine/debian/changelog     2014-04-07 23:53:20.000000000 +0000
@@ -1,3 +1,10 @@
+pam (1.1.8-2+hurd.2) unreleased; urgency=medium
+
+  * rules: On hurd-any, link libpam with -lpthread to fix loading modules
+    using libpthread.
+
+ -- Samuel Thibault <[email protected]>  Thu, 20 Mar 2014 02:17:45 +0000
+
 pam (1.1.8-2) unstable; urgency=medium
 
   * Mark the libaudit-dev build-dependency linux-any, since it's not
diff -ur pam-1.1.8/debian/rules pam-1.1.8.mine/debian/rules
--- pam-1.1.8/debian/rules      2014-04-07 23:48:22.000000000 +0000
+++ pam-1.1.8.mine/debian/rules 2014-04-07 23:52:28.000000000 +0000
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 
 DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs
+ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_OS),hurd)
+DEB_LDFLAGS_MAINT_APPEND += -lpthread
+endif
 DEB_CFLAGS_MAINT_APPEND  := $(shell getconf LFS_CFLAGS)
 export DEB_LDFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND
 

Reply via email to