diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/pthread.builtin.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/pthread.builtin.mk b/mk/pthread.builtin.mk index e3b50644a6f..05e4ad201c6 100644 --- a/mk/pthread.builtin.mk +++ b/mk/pthread.builtin.mk @@ -1,4 +1,4 @@ -# $NetBSD: pthread.builtin.mk,v 1.5 2004/11/28 05:44:34 jlam Exp $ +# $NetBSD: pthread.builtin.mk,v 1.6 2004/12/09 15:27:13 jlam Exp $ .for _lib_ in pthread c_r rt . if !defined(_BLNK_LIB_FOUND.${_lib_}) @@ -53,6 +53,9 @@ BUILDLINK_CFLAGS.pthread+= -pthread . else BUILDLINK_CPPFLAGS.pthread+= -D_REENTRANT . endif +. if ${OPSYS} == "FreeBSD" +BUILDLINK_CPPFLAGS.pthread+= -D_THREAD_SAFE +. 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. |