$NetBSD$

--- libjava/configure.ac.orig	2011-02-25 16:08:27.000000000 +0100
+++ libjava/configure.ac
@@ -1011,6 +1011,11 @@
 	THREADLDFLAGS=-pthread
 	THREADSPEC=-lpthread
 	;;
+     *-*-netbsd*)
+	# NetBSD should work with pthread.
+	THREADLDFLAGS=-pthread
+	THREADSPEC=-lpthread
+	;;
      alpha*-dec-osf* | hppa*-hp-hpux*)
 	THREADCXXFLAGS=-pthread
 	# boehm-gc needs some functions from librt, so link that too.
