Tk Source Code

View Ticket
Login
Ticket UUID: 1488195
Title: Solaris LP64 build incorrectly hardcodes /usr/openwin/lib
Type: Bug Version: obsolete: 8.4.13
Submitter: enchanter Created on: 2006-05-14 04:21:44
Subsystem: 84. Unix Build Assigned To: stwo
Priority: 5 Medium Severity:
Status: Pending Last Modified: 2026-09-25 11:20:54
Resolution: Out of Date Closed By:
    Closed on:
Description:
Whether or not one specifies --enable-64bit when
configuring tk 8.4.13, tk always hardcodes
-R/usr/openwin/lib into both libtk-8.4.so and wish.

I believe that's wrong when building for LP64 Solaris
(e.g. generating ELF64 objects) -- if it's going to
hardcode anything it should be -R/usr/openwin/lib/64.

This type of thing no doubt applies to other multi-ABI
platforms too (e.g. IRIX vs. IRIX64).
User Comments: serhiy.storchaka added on 2026-09-25 11:20:54:

Still true in current configure: the X library directory is added to the runtime path (-R on Solaris), so if /usr/openwin/lib is found, a 64-bit build gets the 32-bit directory. Workaround: --x-libraries=/usr/openwin/lib/64. OpenWindows is gone since Solaris 11 and this cannot be tested here, so this is likely out of date.