From e9fbae70fbfb5ccdeef59af2c5b1587e921ab01e Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 7 Apr 2014 17:49:33 -0700 Subject: 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. --- debian/changelog | 9 +++++++++ debian/rules | 3 +++ 2 files changed, 12 insertions(+) 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 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) -- cgit v1.2.3