pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk add pthread glue for OSF1, patch from Tobias Nygren.
details: https://anonhg.NetBSD.org/pkgsrc/rev/65c9f5b4dec6
branches: trunk
changeset: 483845:65c9f5b4dec6
user: grant <grant%pkgsrc.org@localhost>
date: Sat Nov 20 05:19:12 2004 +0000
description:
add pthread glue for OSF1, patch from Tobias Nygren.
diffstat:
mk/pthread.builtin.mk | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 092ac666acca -r 65c9f5b4dec6 mk/pthread.builtin.mk
--- a/mk/pthread.builtin.mk Sat Nov 20 05:08:22 2004 +0000
+++ b/mk/pthread.builtin.mk Sat Nov 20 05:19:12 2004 +0000
@@ -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_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.
#
Home |
Main Index |
Thread Index |
Old Index