pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Rewrite the USE_BUILTIN.pthread section a bit so th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/862609ab650b
branches:  trunk
changeset: 495418:862609ab650b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jun 09 06:03:40 2005 +0000

description:
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:

 mk/pthread.builtin.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 132c8b4c6aca -r 862609ab650b mk/pthread.builtin.mk
--- a/mk/pthread.builtin.mk     Thu Jun 09 05:59:51 2005 +0000
+++ b/mk/pthread.builtin.mk     Thu Jun 09 06:03:40 2005 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index