Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f289d8f81c62223d11a5a44d4a9e8add8a31ae3a
Ticket: 1839067fffffffffffffffffffffffffffffffff
fp rounding setup on opensolaris x86
User & Date: nobody on 2009-01-31 23:51:49
Changes

  1. icomment:
    Suggest that gsyoungblood's patch incorrectly builds 64 bit objects on 32 bit boxes. (The patch against the original code is correct; the original code was incorrect.)
    
    The patch should be as follows. Note that at configure:8417, configure:8651, tcl.m4:1916, tcl.m4:1978 we exclude i386 boxes; the original patch included them. (We don't want -m64 in CFLAGS on a 32-bit box.)
    
    Regards,
    Geoff.
    first six letters on the top row (i.e. q...) of a US / UK keyboard at acm.org.
    
    
    diff -bur tcl8.5.6/unix/configure tcl8.5.6-patched/unix/configure
    --- tcl8.5.6/unix/configure2008-12-22 14:16:08.000000000 +0000
    +++ tcl8.5.6-patched/unix/configure2009-01-31 16:19:42.495469123 +0000
    @@ -8417,7 +8417,7 @@
     
     
     else
    -  if test "$arch" = "amd64 i386"; then
    +  if test "$arch" = "amd64"; then
     
         if test "$GCC" = yes; then
     
    @@ -8468,7 +8468,7 @@
     arch=`isainfo`
     echo "$as_me:$LINENO: checking whether to use -lsunmath for fp rounding control" >&5
     echo $ECHO_N "checking whether to use -lsunmath for fp rounding control... $ECHO_C" >&6
    -if test "$arch" = "amd64 i386"; then
    +if test "$arch" = "amd64" -o "$arch" = "i386"; then
     
     echo "$as_me:$LINENO: result: yes" >&5
     echo "${ECHO_T}yes" >&6
    @@ -8651,7 +8651,7 @@
     #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
     
     else
    -  if test "$arch" = "amd64 i386"; then
    +  if test "$arch" = "amd64"; then
     
     SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
     
    diff -bur tcl8.5.6/unix/tcl.m4 tcl8.5.6-patched/unix/tcl.m4
    --- tcl8.5.6/unix/tcl.m42008-12-22 14:16:08.000000000 +0000
    +++ tcl8.5.6-patched/unix/tcl.m42009-01-31 16:20:05.425468467 +0000
    @@ -1916,7 +1916,7 @@
     # Solaris 64 uses this as well
     #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
         ])
    -], [AS_IF([test "$arch" = "amd64 i386"], [
    +], [AS_IF([test "$arch" = "amd64"], [
         AS_IF([test "$GCC" = yes], [
     case $system in
         SunOS-5.1[[1-9]]*|SunOS-5.[[2-9]][[0-9]]*)
    @@ -1947,7 +1947,7 @@
         AS_IF([test "$GCC" = yes],[use_sunmath=no],[
     arch=`isainfo`
     AC_MSG_CHECKING([whether to use -lsunmath for fp rounding control])
    -AS_IF([test "$arch" = "amd64 i386"], [
    +AS_IF([test "$arch" = "amd64" -o "$arch" = "i386"], [
     AC_MSG_RESULT([yes])
     MATH_LIBS="-lsunmath $MATH_LIBS"
     AC_CHECK_HEADER(sunmath.h)
    @@ -1978,7 +1978,7 @@
     # path, remove so name and append 'sparcv9'
     #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
     #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
    -    ], [AS_IF([test "$arch" = "amd64 i386"], [
    +    ], [AS_IF([test "$arch" = "amd64"], [
     SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
         ])])
     ])
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"