openbsd-ports/www/retawq/patches/patch-configure
ajacoutot 7e552a9924 - compile and link with -pthread, not -lpthread
spotted by naddy@ who gave me lots of inputs over this

maintainer is ok
ok naddy@
2009-03-25 18:09:12 +00:00

22 lines
686 B
Plaintext

$OpenBSD: patch-configure,v 1.1 2009/03/25 18:09:12 ajacoutot Exp $
--- configure.orig Sun Mar 19 08:21:24 2006
+++ configure Wed Mar 25 18:35:10 2009
@@ -635,7 +635,7 @@ ic_binary_retawq_c_sources="$ic_binary_retawq_c_source
case "x$ic_option_threading" in
x0) ;;
*)
-ic_binary_retawq_cflags="$ic_binary_retawq_cflags -D_REENTRANT -D_THREAD_SAFE"
+ic_binary_retawq_cflags="$ic_binary_retawq_cflags -D_REENTRANT -D_THREAD_SAFE -pthread"
;;
esac
cat >&7 <<EOF
@@ -1187,7 +1187,7 @@ if $i_need_lib; then
do
eval i_var="ic_binary_${i_bin}_libs"
eval i_val="$`echo $i_var`"
- eval "$i_var='$i_val -lpthread'"
+ eval "$i_var='$i_val -pthread'"
done
fi
;;