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/rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/rules') 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