From cda1ab8d17ff0b94c0f4850b7770ea20adfcb195 Mon Sep 17 00:00:00 2001 From: grant Date: Sat, 20 Nov 2004 05:19:12 +0000 Subject: [PATCH] add pthread glue for OSF1, patch from Tobias Nygren. --- mk/pthread.builtin.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk index ce64509228a4..4fd1a9306117 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. #