Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 083a54ba9d9a2900cb66a153727684f36446cb57
Ticket: 1597389fffffffffffffffffffffffffffffffff
--enable-64bit support for Linux
User & Date: das on 2006-11-16 00:27:29
Changes

  1. assignee changed to: "das"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    configure needs --enable-64bit support on Linux, as certain platforms, 
    such as the SF CF host openpower-linux1 (Power5 SUSE Linux) are 64-bit 
    capable but compile for 32-bit by default.
    
    According to
    http://gcc.fyxm.net/summit/2003/Porting%20to%2064%20bit.pdf
    all that is required for recent 64-bit Linux with biarch compiler is to add -
    m64 to the gcc options for compiling and linking.
    
    The attached patch to tcl.m4 checks that linking with -m64 succeeds and 
    adds that flag to CFLAGS. SHLIB_LD is changed to take account of CFLAGS 
    & LDFLAGS (configure tests that this works, and we link executables in 
    this way already so that should not cause any issues). This does the right 
    thing on the openpower-linux1 host and leads to a 64-bit build that 
    passes the testsuite.
    
    I've verified that passing --enable-64bit does no harm on the amd64-
    linux1 SF CF host (AMD64 - Fedora Linux), a 64-bit platform that 
    compiles for 64-bit by default, in fact it avoids a confusing configure 
    warning that 64-bit support is disabled (Bug 1230558) and marks the 
    build as 64-bit in the TIP59 config info.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "das"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "--enable-64bit support for Linux"
  12. type changed to: "Patch"