Overview
| Artifact ID: | 083a54ba9d9a2900cb66a153727684f36446cb57 |
|---|---|
| Ticket: | 1597389fffffffffffffffffffffffffffffffff
--enable-64bit support for Linux |
| User & Date: | das on 2006-11-16 00:27:29 |
Changes
- assignee changed to: "das"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "das"
- subsystem changed to: "52. Portability Support"
- title changed to: "--enable-64bit support for Linux"
- type changed to: "Patch"