diff options
author | jlam <jlam> | 2004-11-25 21:43:19 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-11-25 21:43:19 +0000 |
commit | 058ca8d8e9a62603cb3bbb2d1e1ef1f98ad03997 (patch) | |
tree | feed2a671aea0b5160a4a776082e752a7a4d97ef /mk | |
parent | 9fc7aa74b65cd3fe79254d575ca98847bab387a9 (diff) | |
download | pkgsrc-058ca8d8e9a62603cb3bbb2d1e1ef1f98ad03997.tar.gz |
Only include pthreads if we prefer native pthreads. This allows building
pkgsrc without any pthreads if we don't want to.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/dlopen.buildlink3.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/dlopen.buildlink3.mk b/mk/dlopen.buildlink3.mk index 40907688e82..2d0a6ca4b24 100644 --- a/mk/dlopen.buildlink3.mk +++ b/mk/dlopen.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: dlopen.buildlink3.mk,v 1.1 2004/11/25 21:33:37 jlam Exp $ +# $NetBSD: dlopen.buildlink3.mk,v 1.2 2004/11/25 21:43:19 jlam Exp $ # # This Makefile fragment is included by package Makefiles and # buildlink3.mk files for the packages that use dlopen(). @@ -24,7 +24,9 @@ _DLOPEN_REQUIRE_PTHREAD_PLATFORMS= \ _DLOPEN_REQUIRE_PTHREADS?= no .for _pattern_ in ${_DLOPEN_REQUIRE_PTHREAD_PLATFORMS} . if !empty(MACHINE_PLATFORM:${_pattern_}) +. if !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS]) _DLOPEN_REQUIRE_PTHREADS= yes +. endif . endif .endfor |