summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2004-09-19 19:51:04 +0000
committerhe <he@pkgsrc.org>2004-09-19 19:51:04 +0000
commite8dd584cbb980901f5c541882689dd28f180da6a (patch)
tree1e2a408093354e7c5d86dc2b1695417dde3dc03d /lang
parent2694b1321ea39bc884c059ef8cae81f9a4ef71d1 (diff)
downloadpkgsrc-e8dd584cbb980901f5c541882689dd28f180da6a.tar.gz
Disable threads usage by tcl on NetBSD-1.6* (tested) and NetBSD-1.5*
(by extension). Evidence suggests there is (at best) a bad interaction between pth and the thread memory allocator inside tcl, as witnessed by the tcl-scotty's package failure to install if threads is enabled on 1.6.2_STABLE/i386. Interestingly, the version with native threads on 2.0_BETA/alpha works just nicely.
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile
index 37fdd1d834e..3261fa76bd9 100644
--- a/lang/tcl/Makefile
+++ b/lang/tcl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/06/22 18:34:09 drochner Exp $
+# $NetBSD: Makefile,v 1.36 2004/09/19 19:51:04 he Exp $
#
DISTNAME= tcl8.4.6-src
@@ -29,13 +29,20 @@ INSTALL_TARGET= install
# install to avoid overwriting existing manpages in ${PREFIX}/man.
#
CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+.if empty(OS_VERSION:M1.[56].*)
CONFIGURE_ARGS+= --enable-threads
+.else
+CONFIGURE_ARGS+= --disable-threads
+.endif
+.endif
# Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages.
CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl"
-.include "../../mk/bsd.prefs.mk"
-
# NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug
# tickled by the Tcl code that manifests in code generation problems.
#
@@ -43,7 +50,11 @@ CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl"
CONFIGURE_ENV+= COMPILER_OPTIMIZATION_BUG=YES
.endif
+.if ${OPSYS} == "NetBSD"
+.if empty(OS_VERSION:M1.[56].*)
.include "../../mk/pthread.buildlink3.mk"
+.endif
+.endif
# Modify mkLinks script to remove the short-filename manpage if it was
# linked to a longer filename.