openbsd-ports/textproc/icu4c/patches/patch-source_configure
2010-04-05 21:40:24 +00:00

56 lines
1.7 KiB
Plaintext

$OpenBSD: patch-source_configure,v 1.7 2010/04/05 21:40:24 landry Exp $
--- source/configure.orig Tue Mar 16 06:15:14 2010
+++ source/configure Sat Mar 20 11:16:31 2010
@@ -6915,13 +6915,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
@@ -6985,7 +6985,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
@@ -7136,13 +7136,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
@@ -7206,7 +7206,7 @@ if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x""
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi