- compile and link with -pthread, not -lpthread

spotted by naddy@ who gave me lots of inputs over this

maintainer is ok
ok naddy@
This commit is contained in:
ajacoutot 2009-03-25 18:09:12 +00:00
parent 521cadee50
commit 7e552a9924
3 changed files with 35 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.2 2008/12/08 18:04:52 pirofti Exp $
# $OpenBSD: Makefile,v 1.3 2009/03/25 18:09:12 ajacoutot Exp $
COMMENT = interactive, multi-threaded text mode web browser
DISTNAME = retawq-0.2.6c
PKGNAME = ${DISTNAME}p0
PKGNAME = ${DISTNAME}p1
CATEGORIES = www
HOMEPAGE = http://retawq.sourceforge.net

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile,v 1.1 2009/03/25 18:09:12 ajacoutot Exp $
--- Makefile.orig Tue Mar 24 18:17:34 2009
+++ Makefile Tue Mar 24 18:17:50 2009
@@ -135,7 +135,7 @@ LCLM =
endif
ifeq ($(OPTION_THREADING), 1)
-PTHREAD_LIBS = -lpthread
+PTHREAD_LIBS = -pthread
else
PTHREAD_LIBS =
endif

View File

@ -0,0 +1,21 @@
$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
;;