Artifacts Associated With Ticket 956908ffffffffff
Ticket change [d68de76838] (rid 123826) by tallniel on 2004-05-19 17:58:04:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The Mac OS X makefile does not support building a statically linked tclsh (useful for testing patches), so you have to use the configure script in the unix/ dir. This works ok, but passing in --disable- shared causes a makefile which links against Tcl like: -L/Users/neilmadden/tcl/unix/ -ltcl8.5 (or something like that). However, the Mac OS X linker still prefers to link dynamically against a system lib, if it can find one, so the above is ignored. The way to get around it is to manually hack the Makefile to just have the libtcl8.5.a listed as an object file, rather than using the -L/-l combo, e.g.: /Users/neilmadden/tcl/unix/libtcl8.5.a It would be nice if the configure script could detect building on Mac OS X and do this automatically.
- foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tallniel"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
--disable-shared still links dynamically on Mac OS X
- type initialized to: "Bug"
Ticket change [ada8bf8074] (rid 101509) by tallniel on 2004-05-20 01:01:28:
- assignee changed to: "das"
Ticket change [46fd189a76] (rid 99610) by das on 2004-11-26 14:24:18:
- icomment:
Logged In: YES user_id=90580 also c.f. duplicate 1071458
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [3312fee085] (rid 106520) by das on 2005-01-25 13:53:26:
- closedate changed to: "2005-01-25T06:53:26"
- closer changed to: "das"
- icomment:
Logged In: YES user_id=90580 fixed this by adding the linker flag '-Wl,-search_paths_first' to LDFLAGS in tcl.m4. c.f. man ld: -search_paths_first By default when the -dynamic flag is in effect, the -lx and -weak-lx options first search for a file of the form `libx.dylib' in each directory in the library search path, then a file of the form `libx.a' is searched for in the library search paths. This option changes it so that in each path `libx.dylib' is searched for then `libx.a' before the next path in the library search path is searched. fix committed to tcl and tk HEAD & core-8-4-branch and tclconfig - login: "das"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "das"