openbsd-ports/textproc/icu4c/patches/patch-source_configure
2009-06-07 00:54:43 +00:00

56 lines
1.7 KiB
Plaintext

$OpenBSD: patch-source_configure,v 1.6 2009/06/07 00:54:43 landry Exp $
--- source/configure.orig Sat May 9 20:22:27 2009
+++ source/configure Sat May 9 20:21:03 2009
@@ -5588,13 +5588,13 @@ if test $threads = true; then
# moving on to a more generic test
-{ $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
-$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for pthread_attr_init in -pthread" >&5
+$as_echo_n "checking for pthread_attr_init in -pthread... " >&6; }
if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5658,7 +5658,7 @@ if test "x$ac_cv_lib_pthread_pthread_attr_init" = x""y
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi
@@ -5809,13 +5809,13 @@ fi
else
# For HP 11
-{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
-$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for pthread_mutex_init in -pthread" >&5
+$as_echo_n "checking for pthread_mutex_init in -pthread... " >&6; }
if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5879,7 +5879,7 @@ if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi