summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-02-13 01:37:09 (GMT)
committerhobbs <hobbs>2004-02-13 01:37:09 (GMT)
commit44fa33cef414be69039aaefa10bf1b241d8031ba (patch)
tree5b60ebb8e999db781bc7903e14f46ba7043fa479 /unix/tcl.m4
parent570771be866c0c9094970dfae00a7a3361c66812 (diff)
downloadtcl-44fa33cef414be69039aaefa10bf1b241d8031ba.zip
tcl-44fa33cef414be69039aaefa10bf1b241d8031ba.tar.gz
tcl-44fa33cef414be69039aaefa10bf1b241d8031ba.tar.bz2
update HP-11 build libs setup
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 5b4ed48..db85ff9 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -469,6 +469,7 @@ AC_DEFUN(SC_ENABLE_THREADS, [
ac_saved_libs=$LIBS
LIBS="$LIBS $THREADS_LIBS"
AC_CHECK_FUNCS(pthread_attr_setstacksize)
+ AC_CHECK_FUNCS(pthread_atfork)
LIBS=$ac_saved_libs
AC_CHECK_FUNCS(readdir_r)
else
@@ -988,6 +989,12 @@ dnl AC_CHECK_TOOL(AR, ar)
LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
LD_LIBRARY_PATH_VAR="SHLIB_PATH"
fi
+ if test "$GCC" = "yes" ; then
+ SHLIB_LD="gcc -shared"
+ SHLIB_LD_LIBS='${LIBS}'
+ LD_SEARCH_FLAGS=''
+ CC_SEARCH_FLAGS=''
+ fi
# Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
#EXTRA_CFLAGS="+DAportable"
@@ -1001,7 +1008,7 @@ dnl AC_CHECK_TOOL(AR, ar)
# 64-bit gcc in use. Fix flags for GNU ld.
do64bit_ok=yes
SHLIB_LD="gcc -shared"
- SHLIB_LD_LIBS=""
+ SHLIB_LD_LIBS='${LIBS}'
LD_SEARCH_FLAGS=''
CC_SEARCH_FLAGS=''
;;