From 0ef044664578e5e882b6d3e6b6a1fcead581bfb2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 28 Mar 2012 23:06:20 +0200 Subject: [PATCH] Properly activate the pthread support on GNU/Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally submitted as a patch to the Debian Heimdal package: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=483281 Signed-Off-By: Jelmer Vernooij Signed-off-by: Love Hörnquist Åstrand --- cf/pthreads.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cf/pthreads.m4 b/cf/pthreads.m4 index 209e4f3de..91f2e69e3 100644 --- a/cf/pthreads.m4 +++ b/cf/pthreads.m4 @@ -39,6 +39,11 @@ case "$host" in PTHREAD_CFLAGS=-pthread PTHREAD_LIBADD=-pthread ;; +*-*-gnu*) + native_pthread_support=yes + PTHREADS_CFLAGS=-pthread + PTHREAD_LIBADD="-pthread -lpthread" + ;; *-*-linux* | *-*-linux-gnu) case `uname -r` in 2.*|3.*)