summaryrefslogtreecommitdiff
path: root/mk/dlopen.builtin.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2009-01-23 14:21:38 +0000
committerobache <obache@pkgsrc.org>2009-01-23 14:21:38 +0000
commit63e0edcb0533b72b3814224112257fe414a57943 (patch)
tree445ee2158be2e2e12b3ac04374c24334a5327b1c /mk/dlopen.builtin.mk
parent2a38e48e8c6bfd84aa5f0298463dd0706109b9ac (diff)
downloadpkgsrc-63e0edcb0533b72b3814224112257fe414a57943.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