summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog9
-rwxr-xr-xdebian/rules3
2 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 1de32ebf..f062570d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+pam (1.1.8-3) UNRELEASED; urgency=low
+
+ * debian/rules: On hurd, link libpam explicitly with -lpthread since glibc
+ will not dynamically switch between the libc stubs and the libpthread
+ implementations on this architecture. Thanks to Samuel Thibault for the
+ patch. Closes: #743891.
+
+ -- Steve Langasek <vorlon@debian.org> Mon, 07 Apr 2014 17:48:00 -0700
+
pam (1.1.8-2) unstable; urgency=medium
* Mark the libaudit-dev build-dependency linux-any, since it's not
diff --git a/debian/rules b/debian/rules
index 3260ed99..1bb42123 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs
DEB_CFLAGS_MAINT_APPEND := $(shell getconf LFS_CFLAGS)
export DEB_LDFLAGS_MAINT_APPEND DEB_CFLAGS_MAINT_APPEND
+ifeq ($(shell dpkg-architecture -qDEB_BUILD_ARCH_OS),hurd)
+DEB_LDFLAGS_MAINT_APPEND += -lpthread
+endif
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)