Artifacts Associated With Ticket 1403343fffffffff
Ticket change [12c777b3d4] (rid 124108) by gregcouch on 2006-01-11 21:39:54:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
TEA 3.4 provides lots of support for CFLAGS, in tclconfig/tcl.m4, configure.in and Makefile.in, but the corresponding support for LDFLAGS is missing. Some changes are obvious to me, like adding LDFLAGS = @LDFLAGS@ to Makefile.in, but many are not (e.g should there be a separate SHLIB_LDFLAGS?). It also seems obvious to me that Jeff Hobbs could fix this "the right way" in his sleep. Using the sampleextension, this bug can be reproduced by doing: env CFLAGS="-isysroot $(SDK)" LDFLAGS="-Wl,-syslibroot,$(SDK)" ./configure Followed by a "make -n" to see that CFLAGS makes it and LDFLAGS doesn't. The example above is for building Mac OSX 10.3 binaries (both applications and shared libraries) on 10.4, but LDFLAGS=options is useful on other platforms as well.
- foundin initialized to: "obsolete: 8.4.12"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "gregcouch"
- subsystem initialized to: "70. Sample Extension"
- title initialized to: "TEA 3.4 is missing LDFLAGS support"
- type initialized to: "Bug"
Ticket change [c1b218b90d] (rid 111365) by hobbs on 2006-01-12 04:48:29:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 I'll look into this, but I wanted to note that the latest TEA in CVS has support for the universal OS X builds already.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [9e815e7f23] (rid 96478) by gregcouch on 2006-01-12 05:05:47:
- icomment:
Logged In: YES user_id=131838 More information. Universal OS X builds work for Tcl and Tk, but not for the sample extension (I believe tktable has the same problem). Also, with "configure --enable-symbols", the -g is not showing up on the link line.
- login: "gregcouch"
- mimetype: "text/plain"
- username: "gregcouch"
- icomment:
Ticket change [220ad06fab] (rid 130690) by hobbs on 2006-01-24 02:37:47:
- assignee changed to: "das"
- icomment:
Logged In: YES user_id=72656 The latest tcl.m4 updates to TEA/sample should allow building on 10.4 without LDFLAGS being set. There are some special combinations that still require LDFLAGS to be passed through, but it's a bit of a quagmire in the m4 handling of LDFLAGS right now. Passing on to Daniel so he can comment on the special conditions.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [792d4a0d37] (rid 90086) by das on 2006-03-21 19:37:40:
- closedate changed to: "2006-03-21T12:37:40"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 the darwin specific problem in TEA w.r.t LDFLAGS was that the TEA makefile has LDFLAGS_DEFAULT rather than LDFLAGS like the tcl makefile, so darwin SHLIB_LD had to be modified accordingly, a fix for this was committed on 23/1/06 to TEA tclconfig. as far as your example for building 10.3 binaries on 10.4 goes, that no longer works with the latest tools (Xcode 2.2.1), instead use export CFLAGS='-mmacosx-version-min=10.3 -isysroot /Developer/ SDKs/MacOSX10.3.9.sdk' (i.e. no LDFLAGS needed anymore anyway) universal builds are similar: export CFLAGS='-mmacosx-version-min=10.4 -arch ppc -arch ppc64 - arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk' these will work with latest 8.4 & HEAD tcl/tk core and TEA 3.5 extensions.
- login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"