diff options
author | tnn <tnn> | 2007-04-12 18:42:02 +0000 |
---|---|---|
committer | tnn <tnn> | 2007-04-12 18:42:02 +0000 |
commit | 3e473becb8a90077228597fb43271c1d7a16dd34 (patch) | |
tree | 9214c2fd6247493661a235663fb9b250fa6be5ba /mk/pthread.builtin.mk | |
parent | c320ae707790657de597c7f3d6fd3028bb660880 (diff) | |
download | pkgsrc-3e473becb8a90077228597fb43271c1d7a16dd34.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.mk | 3 |
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 |