--- configure
+++ configure
@@ -14504,12 +14504,12 @@
 	       if test "${THREAD_LIBS}" = "-lpthread" ; then
 	           if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
 		   then
-		       THREAD_LIBS=""
+		       #THREAD_LIBS=""
 		       BASE_THREAD_LIBS="-lpthread"
 		   else
 		   if expr ${GCC_MAJOR} \> 3 > /dev/null
 		   then
-		       THREAD_LIBS=""
+		       #THREAD_LIBS=""
 		       BASE_THREAD_LIBS="-lpthread"
 		   else
 		       echo old GCC disabling weak symbols for pthread
--- threads.c
+++ threads.c
@@ -50,6 +50,7 @@
 #ifdef __GNUC__
 #ifdef linux
 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
+#if 0
 extern int pthread_once (pthread_once_t *__once_control,
                          void (*__init_routine) (void))
 	   __attribute((weak));
@@ -88,6 +89,7 @@
 extern int pthread_cond_signal ()
 	   __attribute((weak));
 #endif
+#endif
 #endif /* linux */
 #endif /* __GNUC__ */
 #endif /* HAVE_PTHREAD_H */
--- libxml-2.0.pc.in
+++ libxml-2.0.pc.in
@@ -8,6 +8,5 @@
 Version: @VERSION@
 Description: libXML library version2.
 Requires:
-Libs: -L${libdir} -lxml2
-Libs.private: @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@
-Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@
+Libs: -L${libdir} @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @WIN32_EXTRA_LIBADD@ @LIBS@ -lxml2
+Cflags: @THREAD_CFLAGS@ @XML_INCLUDEDIR@ @XML_CFLAGS@
--- libxml-2.0-uninstalled.pc.in
+++ libxml-2.0-uninstalled.pc.in
@@ -9,4 +9,4 @@
 Description: libXML library version2.
 Requires:
 Libs: -L${libdir} -lxml2 @ICU_LIBS@ @THREAD_LIBS@ @Z_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@
-Cflags: -I${includedir} @XML_INCLUDEDIR@ @XML_CFLAGS@
+Cflags: -I${includedir} @THREAD_CFLAGS@ @XML_INCLUDEDIR@ @XML_CFLAGS@
--- xml2-config.in
+++ xml2-config.in
@@ -67,7 +67,7 @@
 	;;
 
     --cflags)
-       	echo @XML_INCLUDEDIR@ @XML_CFLAGS@
+       	echo @THREAD_CFLAGS@ @XML_INCLUDEDIR@ @XML_CFLAGS@
        	;;
 
     --libtool-libs)
