Skip to content
Tcl Source Code History Of Ticket 956908ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 956908ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 956908ffffffffffffffffffffffffffffffffff

  1. Ticket change [d68de76838] (rid 123826) by tallniel on 2004-05-19 17:58:04:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "tallniel"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to:
      --disable-shared still links dynamically on Mac OS X
      
    11. type initialized to: "Bug"
  2. Ticket change [ada8bf8074] (rid 101509) by tallniel on 2004-05-20 01:01:28:

    1. assignee changed to: "das"
  3. Ticket change [46fd189a76] (rid 99610) by das on 2004-11-26 14:24:18:

    1. icomment:
      Logged In: YES 
      user_id=90580
      
      also c.f. duplicate 1071458
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  4. Ticket change [3312fee085] (rid 106520) by das on 2005-01-25 13:53:26:

    1. closedate changed to: "2005-01-25T06:53:26"
    2. closer changed to: "das"
    3. 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
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "das"