summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/tcl.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 6c5c4c1..5e66945 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1009,6 +1009,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"
@@ -1022,7 +1028,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=''
;;