diff options
author | hobbs <hobbs> | 2005-01-31 19:22:38 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-01-31 19:22:38 (GMT) |
commit | 3d863ac6d7b40ec6ebb3be86b30dd8d7db93b528 (patch) | |
tree | 55a705bc32dfc6838336163b0cc1135af444e375 /unix/configure | |
parent | 410686f2a264ee5ee804fb1742e85f024783ddc6 (diff) | |
download | tk-3d863ac6d7b40ec6ebb3be86b30dd8d7db93b528.zip tk-3d863ac6d7b40ec6ebb3be86b30dd8d7db93b528.tar.gz tk-3d863ac6d7b40ec6ebb3be86b30dd8d7db93b528.tar.bz2 |
* unix/tcl.m4, unix/configure: add solaris-64 gcc build
support. [Bug 1021871]
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/unix/configure b/unix/configure index 9b1a2fa..4444c36 100755 --- a/unix/configure +++ b/unix/configure @@ -5568,8 +5568,16 @@ _ACEOF arch=`isainfo` if test "$arch" = "sparcv9 sparc" ; then if test "$GCC" = "yes" ; then - { echo "$as_me:$LINENO: WARNING: \"64bit mode not supported with GCC on $system\"" >&5 -echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;} + if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then + { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 +echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} + else + do64bit_ok=yes + CFLAGS="$CFLAGS -m64 -mcpu=v9" + LDFLAGS="$LDFLAGS -m64 -mcpu=v9" + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_FLAGS="" + fi else do64bit_ok=yes if test "$do64bitVIS" = "yes" ; then @@ -5581,8 +5589,8 @@ echo "$as_me: WARNING: \"64bit mode not supported with GCC on $system\"" >&2;} fi fi else - { echo "$as_me:$LINENO: WARNING: \"64bit mode only supported sparcv9 system\"" >&5 -echo "$as_me: WARNING: \"64bit mode only supported sparcv9 system\"" >&2;} + { echo "$as_me:$LINENO: WARNING: 64bit mode only supported sparcv9 system" >&5 +echo "$as_me: WARNING: 64bit mode only supported sparcv9 system" >&2;} fi fi @@ -5597,6 +5605,15 @@ echo "$as_me: WARNING: \"64bit mode only supported sparcv9 system\"" >&2;} SHLIB_LD="$CC -shared" CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + if test "$do64bit_ok" = "yes" ; then + # We need to specify -static-libgcc or we need to + # add the path to the sparv9 libgcc. + SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" + # for finding sparcv9 libgcc, get the regular libgcc + # path, remove so name and append 'sparcv9' + #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." + #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" + fi else SHLIB_LD="/usr/ccs/bin/ld -G -z text" CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' @@ -5674,8 +5691,8 @@ echo "${ECHO_T}$found" >&6 esac if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then - { echo "$as_me:$LINENO: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&5 -echo "$as_me: WARNING: \"64bit support being disabled -- don\'t know magic for this platform\"" >&2;} + { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 +echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} fi if test "$do64bit" = "yes" -a "$do64bit_ok" = "yes" ; then |