pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Rework code to more easily allow listing other plat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/403c9394a0db
branches: trunk
changeset: 487577:403c9394a0db
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Jan 17 08:29:30 2005 +0000
description:
Rework code to more easily allow listing other platform that, like NetBSD,
use GCC and can accept -pthread. Add DragonFly(BSD) to this list (from
PR pkg/28964).
diffstat:
mk/pthread.builtin.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 27c5e0e9f5aa -r 403c9394a0db mk/pthread.builtin.mk
--- a/mk/pthread.builtin.mk Mon Jan 17 08:04:25 2005 +0000
+++ b/mk/pthread.builtin.mk Mon Jan 17 08:29:30 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pthread.builtin.mk,v 1.6 2004/12/09 15:27:13 jlam Exp $
+# $NetBSD: pthread.builtin.mk,v 1.7 2005/01/17 08:29:30 jlam Exp $
.for _lib_ in pthread c_r rt
. if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -45,7 +45,8 @@
# XXX
# XXX This should really be a check for GCC!
# XXX
-. if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD"
+BUILDLINK_OPSYS_SUPPORT_PTHREAD= DragonFly FreeBSD Linux NetBSD
+. if !empty(BUILDLINK_OPSYS_SUPPORT_PTHREAD:M${OPSYS})
BUILDLINK_CFLAGS.pthread+= -pthread
BUILDLINK_LDFLAGS.pthread+= -pthread
. elif ${OPSYS} == "OSF1"
Home |
Main Index |
Thread Index |
Old Index