openbsd-ports/cad/gtkwave/patches/patch-configure
2011-11-16 14:52:50 +00:00

33 lines
856 B
Plaintext

$OpenBSD: patch-configure,v 1.3 2011/11/16 14:52:50 jasper Exp $
Using -lpthread is verboten!
--- configure.orig Wed Nov 16 15:33:30 2011
+++ configure Wed Nov 16 15:33:50 2011
@@ -5142,13 +5142,13 @@ _ACEOF
fi
-{ $as_echo "$as_me:$LINENO: checking for main in -lpthread" >&5
-$as_echo_n "checking for main in -lpthread... " >&6; }
+{ $as_echo "$as_me:$LINENO: checking for main in -pthread" >&5
+$as_echo_n "checking for main in -pthread... " >&6; }
if test "${ac_cv_lib_pthread_main+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
@@ -5206,7 +5206,7 @@ if test "x$ac_cv_lib_pthread_main" = x""yes; then
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi