Overview
| Artifact ID: | de8c63bed1b460ddea98a4e003725f5846d21b3d |
|---|---|
| Ticket: | 1921166fffffffffffffffffffffffffffffffff
won't build 64bit version on Solaris with cc |
| User & Date: | das on 2008-03-20 23:35:49 |
Changes
- icomment:
Logged In: YES user_id=90580 Originator: NO this change was needed to get the DTrace support to compile with sun cc, can you verify that tcl builds correctly with '--enable-dtrace --enable-64bit' when you add LDFLAGS to SHLIB_LD? I don't have access to a 64bit Solaris box... I would suggest that a better fix would be to add a make-time ref to LDFLAGS to the link line, same as we do on many other platforms. Could you verify that the HEAD builds correctly for 64bit with the following change? what about the /usr/ccs/bin/ld case, is the -xarch flag not needed there? Index: unix/tcl.m4 =================================================================== RCS file: /cvsroot/tcl/tcl/unix/tcl.m4,v retrieving revision 1.192 diff -u -p -r1.192 tcl.m4 --- unix/tcl.m413 Mar 2008 17:44:22 -00001.192 +++ unix/tcl.m420 Mar 2008 16:25:36 -0000 @@ -1954,7 +1954,7 @@ dnl AC_CHECK_TOOL(AR, ar) ], [ case $system in SunOS-5.[[1-9]][[0-9]]*) -SHLIB_LD='${CC} -G -z text';; +SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; *) SHLIB_LD='/usr/ccs/bin/ld -G -z text';; esac - login: "das"
- mimetype: "text/plain"
- username: "das"