summaryrefslogtreecommitdiff
path: root/mk/dlopen.builtin.mk
diff options
context:
space:
mode:
authorobache <obache>2009-01-23 14:21:38 +0000
committerobache <obache>2009-01-23 14:21:38 +0000
commit8d45d7f1e780e71b25fbacc632b70e1fbd758be9 (patch)
tree445ee2158be2e2e12b3ac04374c24334a5327b1c /mk/dlopen.builtin.mk
parent10039e5bb60e5ff78f9dae7e24ec66624fa99ee1 (diff)
downloadpkgsrc-8d45d7f1e780e71b25fbacc632b70e1fbd758be9.tar.gz
Update DLOPEN_REQUIRE_PTHREADS pattern again.
Even on NetBSD>=5, need to link pthread if using pthread_create()/join().
Diffstat (limited to 'mk/dlopen.builtin.mk')
-rw-r--r--mk/dlopen.builtin.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/dlopen.builtin.mk b/mk/dlopen.builtin.mk
index 258d497dbf8..2d8c510341f 100644
--- a/mk/dlopen.builtin.mk
+++ b/mk/dlopen.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: dlopen.builtin.mk,v 1.18 2009/01/23 13:07:25 obache Exp $
+# $NetBSD: dlopen.builtin.mk,v 1.19 2009/01/23 14:21:38 obache Exp $
BUILTIN_PKG:= dl
@@ -42,13 +42,16 @@ MAKEVARS+= USE_BUILTIN.dl
# application if it uses dlopen() or else the applications will core
# dump when they dlopen a shared module that _is_ linked with pthread
# support.
+# It is not required for NetBSD>=5 if just linked with pthread or using
+# pthread_mutex_*(), but need if using pthread_create() / pthread_join().
#
_BLNK_DLOPEN_REQUIRE_PTHREAD_PLATFORMS= \
NetBSD-2.[0-9]_*-* \
NetBSD-2.[0-9]-* NetBSD-2.[0-9].[0-9]*-* \
NetBSD-2.[0-8][0-9]*-* NetBSD-2.9[0-8]*-* \
NetBSD-2.99.[0-9]-* NetBSD-2.99.10-* \
- NetBSD-[3-4]*-*
+ NetBSD-[3-9]*-* \
+ NetBSD-[1-9][0-9]*-*
.if !defined(_BLNK_DLOPEN_REQUIRE_PTHREADS)
_BLNK_DLOPEN_REQUIRE_PTHREADS?= no