| Ticket UUID: | 2818765 | ||
| Title: | tclConfig.sh references undefined var ${CC} for TCL_SHLIB_LD | ||
| Type: | Bug | Created on: | 2009-07-08 21:38:01 |
| Submitter: | karll | Assigned to: | stwo |
| Subsystem: | 53. Configuration and Build Tools | Severity: | |
| Priority: | 5 Medium | Last modified: | 2013-02-05 19:20:19 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | obsolete: 8.5.7 | ||
| Description: | ||||
On FreeBSD and OS X, with 8.5.7 and 8.6b1, running configure generates a tclConfig.sh that references an undefined variable ${CC} in TCL_SHLIB_LD. With Tcl 8.4, this is properly substituted.
It leaves the following line with ${CC} unsubstituted:
TCL_SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS} -Wl,-single_module'
The tclConfig.sh for 8.4 is substituted:
TCL_SHLIB_LD='cc -shared'
This breaks some things that try to suck in tclConfig.sh to know how to build shared libraries and the like.
I *think* you want the TCL_SHLIB_LD line to reference ${TCL_CC}, which IS defined in tclConfig.sh.
| ||||
| User Comments: | ||||
stwo added on 2012-09-29 11:26:44:
From this commit http://core.tcl.tk/tcl/info/7c64b38c55 on 2007-09-15.
"replace all direct references to compiler by ${CC} to enable CC overriding at configure & make time"
Is this still a problem for you?
This was only done on trunk. I shrug at the thought of a backport.
stwo added on 2013-02-05 19:20:19:
This is now the situation in 8.5 and 8.6. I believe that this is correct and will not change. Software that depends on prior behaviour will require modification. Close with "rejected", "invalid" or "won't fix"? | ||||
