$OpenBSD: patch-configure_in,v 1.8 2012/04/27 08:18:59 rpointel Exp $

Wrong value of LDSHARED in sysconfig, cf http://bugs.python.org/issue10547

--- configure.in.orig	Tue Apr 10 01:07:36 2012
+++ configure.in	Fri Apr 13 07:45:44 2012
@@ -2057,9 +2057,10 @@ AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-U
 
 # only check for sem_init if thread support is requested
 if test "$with_threads" = "yes" -o -z "$with_threads"; then
-    AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
+#    AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
 						# posix4 on Solaris 2.6
 						# pthread (first!) on Linux
+	LIBS="-pthread ${LIBS}"
 fi
 
 # check if we need libintl for locale functions
