Artifacts Associated With Ticket 3554282fffffffff
Ticket change [5868a9f665] (rid 117798) by stwo on 2012-08-04 15:03:18:
- assignee initialized to: "nijtmans"
- cmimetype initialized to: "text/plain"
- comment initialized to:
As of checkin 30736d63f0, CFLAGS is getting set to "-g -O2" and we are trying to avoid that. In tcl.m4,TEA_SETUP_COMPILER_CC: # If the user did not set CFLAGS, set it now to keep # the AC_PROG_CC macro from adding "-g -O2". if test "${CFLAGS+set}" != "set" ; then CFLAGS="" fi - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "stwo"
- subsystem initialized to: "85. tclconfig"
- title initialized to: "Checkin [30736d63f0] broke CFLAGS"
- type initialized to: "Bug"
Ticket change [27d472d675] (rid 88588) by ferrieux on 2012-08-05 00:17:42:
- icomment:
Upping the prio. That should not happen.
- login: "ferrieux"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "ferrieux"
- icomment:
Ticket change [7a89501378] (rid 90340) by nijtmans on 2012-08-05 02:30:28:
- assignee changed to: "stwo"
- icomment:
I'm sorry, but I don't see how checkin 30736d63f0 changed anything about CFLAGS, nor I really understand the problem. So, Stuart, please just make the modifications you would want, and I will check whether it breaks any of the cross-compiling support that 30736d63f0 adds. That probably is the fastest way to resolve this issue. I don't have any objections to setting CFLAGS to empty if it is not set. Regards, Jan Nijtmans - login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [27dd199644] (rid 88597) by nijtmans on 2012-08-06 20:39:47:
- assignee changed to: "nijtmans"
- icomment:
Assigning back to me, because I'm starting to see the problem. Normally, configure scripts to the following: TEA_INIT .... TEA_LOAD_TCLCONFIG ... TEA_SETUP_COMPILER (just the relevant ones for this analysis) One of the difficulties in cross-compilation support is that TEA_INIT no longer is able to determine whether we are on win32 or unix, so it was moved to TEA_LOAD_TCLCONFIG. Doing that it needs AC_TRY_COMPILE, determining whether the compiler sets _WIN32 or not, that's the only reliable way to determine that. Previously, TEA_SETUP_COMPILER was the first macro which called the compiler, that;s where the CFLAGS were set for the first time. So, possible solution: repeat the given lines in the TEA_LOAD_TCLCONFIG macro as well, that should fix this.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [54f86e4cd8] (rid 94044) by nijtmans on 2012-08-07 14:06:43:
- assignee changed to: "stwo"
- closedate changed to: "2012-08-07T07:06:43"
- closer changed to: "nijtmans"
- icomment:
> So, possible solution: repeat the given lines > in the TEA_LOAD_TCLCONFIG macro as > well, that should fix this. That approach didn't work, it's not clear to me why. But found a simpler solution. The problem here was that the AC_TRY_COMPILE simply did too much things we don't want, so I replaced the AC_TRY_COMPILE macro call with just the small part we need. Stuart, please verify that things are correct now. So thread/Itcl/tdbc's configure scripts can all be regenerated for inclusion in Tcl 8.6b3.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "nijtmans"
Ticket change [03d7e238d7] (rid 119894) by stwo on 2012-08-07 15:58:07:
- icomment:
I've moved the CFLAGS test/set to TEA_INIT and restored your previous code. Doing the check as early as possible should be the best way though sadly the code had a fine and better home in TEA_SETUP_COMPILER_CC. Tcl and Tk also do the check early. This is more fallout from the cygwin changes; I hope it's worth it. /:
- login: "stwo"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "stwo"
- icomment:
Ticket change [1ca27cb314] (rid 90638) by nijtmans on 2012-08-07 17:29:55:
- closedate changed to: "2012-08-07T10:29:55"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1 >This is more fallout from the cygwin changes; I hope it's worth it. /: It's not only Cygwin, you can now cross-compile win32 TEA extesnions on Darwin or Linux as well, just out-of-the-box ;-) So, yes it's worth it. Anyway, tried it on Cygwin, and it appears to work fine. Thanks! Didn't expect it to be that simple.....
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"