diff options
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 2 |
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 |