Tcl Source Code

Artifact [7091264102]
Login

Artifact 70912641029b6656b9a1b4b7a5be7873eec77399:

Attachment "tcl.m4.patch" to ticket [474790ffff] added by furukawa 2001-10-25 15:48:17.
--- tcl.m4.org	Sat Oct 20 09:24:15 2001
+++ tcl.m4	Thu Oct 25 01:23:31 2001
@@ -1029,9 +1029,9 @@
 	    fi
 	    # see pthread_intro(3) for pthread support on osf1, k.furukawa
 	    if test "${TCL_THREADS}" = "1" ; then
-		EXTRA_CFLAGS="${EXTRA_CFLAGS} -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
+		EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
+		LIBS=`echo $LIBS | sed s/-lpthreads//`
 		if test "$GCC" = "yes" ; then
-		    LIBS=`echo $LIBS | sed s/-lpthreads//`
 		    LIBS="$LIBS -lpthread -lmach -lexc"
 		else
 		    EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread"