summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authordas <das@noemail.net>2007-09-15 06:01:49 (GMT)
committerdas <das@noemail.net>2007-09-15 06:01:49 (GMT)
commitacefa7544e8440f5af0937c5710689a194354e1e (patch)
tree65185e00a6b6086693889e7c5c1581663dc1e47b /unix/tcl.m4
parent1ef1ff18c5aaaf9a57040efe415b897319d9a78d (diff)
downloadtk-acefa7544e8440f5af0937c5710689a194354e1e.zip
tk-acefa7544e8440f5af0937c5710689a194354e1e.tar.gz
tk-acefa7544e8440f5af0937c5710689a194354e1e.tar.bz2
* unix/tcl.m4 (SunOS-5.1x): replace direct use of '/usr/ccs/bin/ld'
in SHLIB_LD by 'cc' compiler driver. * unix/configure: autoconf-2.13 FossilOrigin-Name: 624e44158fc0738ff97bef1a91a7bffc964a12f1
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 6b087dc..94b1cc0 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1924,7 +1924,12 @@ dnl AC_CHECK_TOOL(AR, ar)
#CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
fi
else
- SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+ case $system in
+ SunOS-5.[[1-9]][[0-9]]*)
+ SHLIB_LD='${CC} -G -z text';;
+ *)
+ SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
+ esac
CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
fi