summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-07-01 15:43:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-07-01 15:43:53 (GMT)
commitd01a31dd2c3c0984c9ef185aec47a4c008e70b67 (patch)
tree9be27b386d88fe7f5590aff24d2b9d51402dc8c7 /unix/tcl.m4
parent3eeb6cda634b43eb2e12bbdc7bc6b70f1ffefbb8 (diff)
downloadtcl-d01a31dd2c3c0984c9ef185aec47a4c008e70b67.zip
tcl-d01a31dd2c3c0984c9ef185aec47a4c008e70b67.tar.gz
tcl-d01a31dd2c3c0984c9ef185aec47a4c008e70b67.tar.bz2
Fix for Tcl bug #541181; programs that link against libtcl.so on Solaris no
longer need to use the same compiler as that used for the library itself
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 56e8223..a7f15dd 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1243,7 +1243,6 @@ dnl AC_CHECK_TOOL(AR, ar, :)
AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
# Note: need the LIBS below, otherwise Tk won't find Tcl's
# symbols when dynamically loaded into tclsh.
@@ -1255,8 +1254,10 @@ dnl AC_CHECK_TOOL(AR, ar, :)
LDFLAGS=""
if test "$GCC" = "yes" ; then
LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
+ SHLIB_LD="$CC -shared"
else
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
+ SHLIB_LD="/usr/ccs/bin/ld -G -z text"
fi
;;
SunOS-5*)
@@ -1268,7 +1269,6 @@ dnl AC_CHECK_TOOL(AR, ar, :)
AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
SHLIB_CFLAGS="-KPIC"
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
LDFLAGS=""
# Check to enable 64-bit flags for compiler/linker
@@ -1301,8 +1301,10 @@ dnl AC_CHECK_TOOL(AR, ar, :)
DL_LIBS="-ldl"
if test "$GCC" = "yes" ; then
LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
+ SHLIB_LD="$CC -shared"
else
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
+ SHLIB_LD="/usr/ccs/bin/ld -G -z text"
fi
;;
ULTRIX-4.*)