summaryrefslogtreecommitdiff
path: root/lang/tcl/patches/patch-ag
blob: 4564c2983dcf6992b027fd7284ba5e66cd6bd76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ag,v 1.2 2004/06/22 18:34:09 drochner Exp $

--- tclConfig.sh.in.orig	2004-03-02 00:58:59.000000000 +0100
+++ tclConfig.sh.in
@@ -13,2 +13,4 @@
 
+if [ -z "${_TCL_NOTHREAD}" ]; then
+
 # Tcl's version number.
@@ -92,3 +94,3 @@ TCL_DL_LIBS='@DL_LIBS@'
 # an executable tclsh or tcltest binary.
-TCL_LD_FLAGS='@LDFLAGS@'
+TCL_LD_FLAGS='@LD_FLAGS@'
 
@@ -180 +182,7 @@ TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'
 TCL_THREADS=@TCL_THREADS@
+
+else
+
+. @prefix@/lib/tclConfig-nothread.sh
+
+fi