summaryrefslogtreecommitdiff
path: root/mk/pthread.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-09 06:03:40 +0000
committerjlam <jlam@pkgsrc.org>2005-06-09 06:03:40 +0000
commit4f7957a874e55ff364c188d0623f83b3b24f30a2 (patch)
tree45e719441fd189336e147628ae5cf9d91c3936cc /mk/pthread.builtin.mk
parentb753b0d414ac684314841cf0bd35ac84a7cc9b19 (diff)
downloadpkgsrc-4f7957a874e55ff364c188d0623f83b3b24f30a2.tar.gz
Rewrite the USE_BUILTIN.pthread section a bit so that it more closely
matches the template in bsd.builtin.mk. This causes USE_BUILTIN.pthread to be cached, which is useful at least for debugging purposes.
Diffstat (limited to 'mk/pthread.builtin.mk')
-rw-r--r--mk/pthread.builtin.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk
index 8d99d147fe1..8d047b2b1d2 100644
--- a/mk/pthread.builtin.mk
+++ b/mk/pthread.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.builtin.mk,v 1.8 2005/06/01 18:03:06 jlam Exp $
+# $NetBSD: pthread.builtin.mk,v 1.9 2005/06/09 06:03:40 jlam Exp $
BUILTIN_PKG:= pthread
@@ -29,11 +29,13 @@ MAKEVARS+= IS_BUILTIN.pthread
# prefer one or the other is dependent on the value of
# PREFER_NATIVE_PTHREADS, which is yes/no.
#
-.if !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS])
+.if !defined(USE_BUILTIN.pthread)
USE_BUILTIN.pthread= ${IS_BUILTIN.pthread}
-.else
+. if !empty(PREFER_NATIVE_PTHREADS:M[nN][oO])
USE_BUILTIN.pthread= no
+. endif
.endif
+MAKEVARS+= USE_BUILTIN.pthread
###
### The section below only applies if we are not including this file