summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2002-07-23 17:32:25 (GMT)
committermdejong <mdejong>2002-07-23 17:32:25 (GMT)
commit136715c4845d937d76e91052aadae60d2104356e (patch)
treeaa6a0fd42f1df9355bb706f6c62865af1aab94bd /unix/tcl.m4
parentd45bebfe57cee2e24f8ebae9243d05caf4244ce3 (diff)
downloadtcl-136715c4845d937d76e91052aadae60d2104356e.zip
tcl-136715c4845d937d76e91052aadae60d2104356e.tar.gz
tcl-136715c4845d937d76e91052aadae60d2104356e.tar.bz2
* unix/configure: Regen.
* unix/tcl.m4 (SC_CONFIG_CFLAGS): Enable 64 bit compilation when using the native compiler on a 64 bit version of IRIX. [Tcl bug 219220]
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index c0ea91e..4ede7dc 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -931,6 +931,20 @@ dnl AC_CHECK_TOOL(AR, ar, :)
DL_LIBS=""
LDFLAGS=""
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+
+ # Check to enable 64-bit flags for compiler/linker
+
+ if test "$do64bit" = "yes" ; then
+ if test "$GCC" = "yes" ; then
+ AC_MSG_WARN([64bit mode not supported by gcc])
+ else
+ do64bit_ok=yes
+ SHLIB_LD="ld -64 -shared -rdata_shared"
+ EXTRA_CFLAGS="-64"
+ LDFLAGS="-64"
+ fi
+ fi
+
;;
Linux*)
SHLIB_CFLAGS="-fPIC"