summaryrefslogtreecommitdiff
path: root/lang/tcl
diff options
context:
space:
mode:
authorhe <he>2004-09-19 19:51:04 +0000
committerhe <he>2004-09-19 19:51:04 +0000
commitf63c20c3e2037b92cd334e1cddcdea7cd43b1dc8 (patch)
tree1e2a408093354e7c5d86dc2b1695417dde3dc03d /lang/tcl
parentb3307e3fb63006a4c192c4860bc7c3c041ce2078 (diff)
downloadpkgsrc-f63c20c3e2037b92cd334e1cddcdea7cd43b1dc8.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/tcl')
-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.