Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2013-02-05
19:20 • Ticket [2818765fff] tclConfig.sh references undefined var ${CC} for TCL_SHLIB_LD... artifact: 23f9743753 user: stwo
2012-09-29
11:26 • Ticket [2818765fff]: 4 changes artifact: 761818c23b user: stwo
2009-07-08
21:38 • New ticket [2818765fff]. artifact: 7d6fb3391f user: karll

tclConfig.sh references undefined var ${CC} for TCL_SHLIB_LD

Open2818765fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 14 years ago
Descriptionplain2009-07-08 21:38:01
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.
stwoplain2012-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.
stwoplain2013-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"?
Log in (anonymous is fine) to add a comment.