diff options
author | jlam <jlam@pkgsrc.org> | 2004-12-09 15:27:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-12-09 15:27:13 +0000 |
commit | 452e77d7992cdd4dd45e74f83d7d5e2c70f392f1 (patch) | |
tree | 2819a8159e783176abed81f2f95950c2dd5436b4 /mk | |
parent | 3a5599d7c81984e45d83e6139401c1827e644a1d (diff) | |
download | pkgsrc-452e77d7992cdd4dd45e74f83d7d5e2c70f392f1.tar.gz |
From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"
as part of the CPPFLAGS when building threaded apps.
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. |