--- configure.orig	Fri Mar  2 14:15:19 2007
+++ configure	Fri Mar  2 14:15:42 2007
@@ -4558,7 +4558,6 @@
    linux_pthread="#define LINUX_PTHREAD"
 fi
 
-LDFLAGS=-lpthread
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -4597,13 +4596,13 @@
 	 test ! -s conftest.err
        } && test -s conftest$ac_exeext &&
        $as_test_x conftest$ac_exeext; then
-  extra_ldflags="$extra_ldflags -lpthread"
+  extra_ldflags="$extra_ldflags"
 
 else
   echo "$as_me: failed program was:" >&5
 sed 's/^/| /' conftest.$ac_ext >&5
 
-	extra_ldflags="$extra_ldflags -pthread"
+	extra_ldflags="$extra_ldflags"
 fi
 
 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
