From 452e77d7992cdd4dd45e74f83d7d5e2c70f392f1 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 9 Dec 2004 15:27:13 +0000 Subject: From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE" as part of the CPPFLAGS when building threaded apps. --- mk/pthread.builtin.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mk') 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. -- cgit v1.2.3