summaryrefslogtreecommitdiff
path: root/mk/pthread.builtin.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-11-20 05:19:12 +0000
committergrant <grant@pkgsrc.org>2004-11-20 05:19:12 +0000
commitcda1ab8d17ff0b94c0f4850b7770ea20adfcb195 (patch)
tree19a315637f19a9fbb84785312b3ee642092ed2f2 /mk/pthread.builtin.mk
parent230469de835055fb4efab13121a7cf45c2f9e580 (diff)
downloadpkgsrc-cda1ab8d17ff0b94c0f4850b7770ea20adfcb195.tar.gz
add pthread glue for OSF1, patch from Tobias Nygren.
Diffstat (limited to 'mk/pthread.builtin.mk')
-rw-r--r--mk/pthread.builtin.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk
index ce64509228a..4fd1a930611 100644
--- a/mk/pthread.builtin.mk
+++ b/mk/pthread.builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.builtin.mk,v 1.1 2004/11/12 05:20:02 jlam Exp $
+# $NetBSD: pthread.builtin.mk,v 1.2 2004/11/20 05:19:12 grant Exp $
.if !defined(_BLNK_LIBPTHREAD_FOUND)
_BLNK_LIBPTHREAD_FOUND!= \
@@ -57,6 +57,12 @@ BUILDLINK_LDFLAGS.pthread+= -pthread
BUILDLINK_CPPFLAGS.pthread+= -D_REENTRANT
. endif
+. if ${OPSYS} == "OSF1"
+BUILDLINK_CFLAGS.pthread+= -pthread
+BUILDLINK_LDFLAGS.pthread+= -lpthread -lrt
+BUILDLINK_CPPFLAGS.pthread+= -pthread
+. endif
+
# Handle systems which have pthreads functions in libc_r such as
# FreeBSD 5.x, or fall back to libc if we don't find libc_r.
#