summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-09-03 19:52:19 (GMT)
committerhobbs <hobbs>2002-09-03 19:52:19 (GMT)
commit555b41ab33cffe4edf21f22dbc17c6c4bd3a1459 (patch)
tree461f4dfb647f913662ab15c2af3b38341b93b53c /unix/tcl.m4
parentf877edf4105f60b343f31b940ab575a2ce0e78ad (diff)
downloadtcl-555b41ab33cffe4edf21f22dbc17c6c4bd3a1459.zip
tcl-555b41ab33cffe4edf21f22dbc17c6c4bd3a1459.tar.gz
tcl-555b41ab33cffe4edf21f22dbc17c6c4bd3a1459.tar.bz2
* unix/configure: remove -pthread from LIBS on FreeBSD in thread
* unix/tcl.m4: enabled build. [Bug #602849]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index fd47e68..454fd6c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1219,6 +1219,8 @@ dnl AC_CHECK_TOOL(AR, ar, :)
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
if test "${TCL_THREADS}" = "1" ; then
+ # The -pthread needs to go in the CFLAGS, not LIBS
+ LIBS=`echo $LIBS | sed s/-pthread//`
EXTRA_CFLAGS="-pthread"
LDFLAGS="$LDFLAGS -pthread"
fi