pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk OSF1 always needs _REENTRANT to be defined when inc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/da0d8fe62785
branches: trunk
changeset: 527735:da0d8fe62785
user: tnn <tnn%pkgsrc.org@localhost>
date: Thu Apr 12 18:42:02 2007 +0000
description:
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:
mk/pthread.builtin.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 8895e583191c -r da0d8fe62785 mk/pthread.builtin.mk
--- a/mk/pthread.builtin.mk Thu Apr 12 18:15:05 2007 +0000
+++ b/mk/pthread.builtin.mk Thu Apr 12 18:42:02 2007 +0000
@@ -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_LDFLAGS.pthread+= -pthread
. elif ${OPSYS} == "OSF1"
BUILDLINK_CFLAGS.pthread+= -pthread
+CFLAGS+= -D_REENTRANT
. else
BUILDLINK_CPPFLAGS.pthread+= -D_REENTRANT
. endif
Home |
Main Index |
Thread Index |
Old Index