summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2004-11-20 05:19:12 +0000
committergrant <grant>2004-11-20 05:19:12 +0000
commit0d3e2d6022723d4ded74ef4d94d9ac5d012e30a8 (patch)
tree19a315637f19a9fbb84785312b3ee642092ed2f2 /mk
parent4f7c887ff5fe9977423f43e59f48b80d0d5c29c2 (diff)
downloadpkgsrc-0d3e2d6022723d4ded74ef4d94d9ac5d012e30a8.tar.gz
add pthread glue for OSF1, patch from Tobias Nygren.
Diffstat (limited to '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.
#