summaryrefslogtreecommitdiff
path: root/mk/pthread.builtin.mk
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-04-12 18:42:02 +0000
committertnn <tnn@pkgsrc.org>2007-04-12 18:42:02 +0000
commitb81a545933a459e73531a1beb70a31a43a918b8c (patch)
tree9214c2fd6247493661a235663fb9b250fa6be5ba /mk/pthread.builtin.mk
parentfb2be4510da9d9dcd12d7e6122b8c2391a287479 (diff)
downloadpkgsrc-b81a545933a459e73531a1beb70a31a43a918b8c.tar.gz
OSF1 always needs _REENTRANT to be defined when including pthread.h, or it
will bail out with an #error preprocessing directive, regardless of whether we actually link to libpthread or not. NB: We can't just sprinkle PTHREAD_AUTO_VARS=YES on the affected packages, because that would introduce a libpthread.so dependency where such isn't wanted. (MesaLib, glitz, ...) For this reason -D_REENTRANT is added directly to CFLAGS.
Diffstat (limited to 'mk/pthread.builtin.mk')
-rw-r--r--mk/pthread.builtin.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk
index 8d047b2b1d2..1b39ac23e22 100644
--- a/mk/pthread.builtin.mk
+++ b/mk/pthread.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.builtin.mk,v 1.9 2005/06/09 06:03:40 jlam Exp $
+# $NetBSD: pthread.builtin.mk,v 1.10 2007/04/12 18:42:02 tnn Exp $
BUILTIN_PKG:= pthread
@@ -59,6 +59,7 @@ BUILDLINK_CFLAGS.pthread+= -pthread
BUILDLINK_LDFLAGS.pthread+= -pthread
. elif ${OPSYS} == "OSF1"
BUILDLINK_CFLAGS.pthread+= -pthread
+CFLAGS+= -D_REENTRANT
. else
BUILDLINK_CPPFLAGS.pthread+= -D_REENTRANT
. endif