Ticket UUID: | 521707 | |||
Title: | IRIX 6 linker options | |||
Type: | Bug | Version: | obsolete: 8.4a4 | |
Submitter: | jenglish | Created on: | 2002-02-23 04:00:50 | |
Subsystem: | 53. Configuration and Build Tools | Assigned To: | mdejong | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2002-02-25 00:01:38 | |
Resolution: | Accepted | Closed By: | jenglish | |
Closed on: | 2002-02-24 17:01:38 | |||
Description: |
On IRIX 6, ./configure adds "-n32" to CFLAGS but links with "-32". The two ABIs are not compatible, so the link fails. "-n32" is the recommended ABI for IRIX 6; the attached patch to tcl.m4 changes LDFLAGS to use -n32 as well. (P.S.: with the exception of the above, configure; make; make install still works flawlessly on IRIX 5 & 6 as of today's CVS HEAD.) (P.P.S: the same change should probably be made to tk/unix/tcl.m4 as well). | |||
User Comments: |
jenglish added on 2002-02-25 00:01:38:
Logged In: YES user_id=68433 > I was a little throw off by the fact that > the IRIX64-6.* branch did not include > -mabi=n32 in the CFLAGS. Hm. '-n32' is the default ABI, unless it's overridden on the command line, or by an environment variable. Maybe it would make sense to specify it explicitly in both places, or leave it unspecified altogether. If I get a chance later this week I'm going to try getting --enable-64bit working on this platform; I'll revisit this issue then. -mabi=n32 is apparently how GCC spells this; the native IRIX compiler doesn't recognize this flag (only -n32, -32, and -64). Anyway, I've (re-)tested it on IRIX 6 and IRIX 5 and it still works OK. mdejong added on 2002-02-24 05:18:47: Logged In: YES user_id=90858 This patch seems ok, but I was a little throw off by the fact that the IRIX64-6.* branch did not include -mabi=n32 in the CFLAGS. I don't have an IRIX box to test this on so I am going to commit it and ask that you double check that it works on the systems you have access to. jenglish added on 2002-02-23 11:00:52: File Added - 18272: autoconf.patch |
Attachments:
- autoconf.patch [download] added by jenglish on 2002-02-23 11:00:52. [details]