diff -Naur heimdal-1.5.1-lunar/cf/pthreads.m4 heimdal-1.5.1/cf/pthreads.m4
--- heimdal-1.5.1-lunar/cf/pthreads.m4	2011-09-30 14:58:45.000000000 +0200
+++ heimdal-1.5.1/cf/pthreads.m4	2011-11-06 16:19:17.479997562 +0100
@@ -44,7 +44,7 @@
 	2.*|3.*)
 		native_pthread_support=yes
 		PTHREAD_CFLAGS=-pthread
-		PTHREAD_LIBADD=-pthread
+		PTHREAD_LIBADD=-lpthread
 		;;
 	esac
 	;;
