pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk From inspecting configure scripts, it seems FreeBSD...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bb71ce92299c
branches: trunk
changeset: 485372:bb71ce92299c
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Dec 09 15:27:13 2004 +0000
description:
>From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"
as part of the CPPFLAGS when building threaded apps.
diffstat:
mk/pthread.builtin.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 7ef2710b1113 -r bb71ce92299c mk/pthread.builtin.mk
--- a/mk/pthread.builtin.mk Thu Dec 09 14:50:23 2004 +0000
+++ b/mk/pthread.builtin.mk Thu Dec 09 15:27:13 2004 +0000
@@ -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 @@
. 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.
Home |
Main Index |
Thread Index |
Old Index