Skip to content
Tcl Source Code History Of Ticket 218386
Login

History Of Ticket 218386

Artifacts Associated With Ticket 218386

  1. Ticket change [6f45bd0108] (rid 100288) by nobody on 2000-10-26 00:56:58:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 4660 Bug
      Version: 8.3
      SubmitDate: '2000-03-28'
      LastModified: '2000-04-14'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: HP-UX
      OSVersion: 10.20
      FixedDate: '2000-10-25'
      ClosedDate: '2000-04-14'
      
      
      Name:
      Tom Lane
      
      ReproducibleScript:
      In the unix directory, do
      configure --disable-shared
      on a machine where SHLIB_CFLAGS is nonempty by default (for example, on HPUX with gcc it needs to contain "-fPIC"
      to generate code that can be put in a shlib).
      
      ObservedBehavior:
      The generated Makefile still has SHLIB_CFLAGS = -fPIC.
      
      DesiredBehavior:
      SHLIB_CFLAGS should be empty.  I observed failure when trying to generate profilable code by selecting --enable-symbols
      and then changing -g to -pg in CFLAGS.  This fails because -fPIC -pg is not a supported combination on this platform.
      But -fPIC shouldn't have been in there since I did --disable-shared too.
      
      (BTW, it'd be nice if -pg were one of the available configure options, but that's not the immediate problem.)
      
      Patch:
      It looks to me like Makefile.in should be substituting TCL_SHLIB_CFLAGS, not SHLIB_CFLAGS.  This patch fixes it:
      
      *** unix/Makefile.in.orig       Thu Feb 10 06:09:57 2000
      --- unix/Makefile.in    Tue Mar 28 17:20:07 2000
      ***************
      *** 168,174 ****
      
        STLIB_LD = @STLIB_LD@
        SHLIB_LD = @SHLIB_LD@
      ! SHLIB_CFLAGS = @SHLIB_CFLAGS@
      
        SHLIB_SUFFIX = @SHLIB_SUFFIX@
        #SHLIB_SUFFIX =
      --- 168,174 ----
      
        STLIB_LD = @STLIB_LD@
        SHLIB_LD = @SHLIB_LD@
      ! SHLIB_CFLAGS = @TCL_SHLIB_CFLAGS@
      
        SHLIB_SUFFIX = @SHLIB_SUFFIX@
        #SHLIB_SUFFIX =
      
      It looks like Tk needs the same change, except use @TK_SHLIB_CFLAGS@
      
      PatchFiles:
      unix/Makefile.in for both Tcl and Tk.
      
      
      
      The user just needs to add the --disable-load command to prevent
      the use of -fPIC for gcc. 
      -- 04/14/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "75. Tutorial"
    10. title initialized to: "--disable-shared doesn't set CFLAGS correctly"
    11. type initialized to: "Bug"
  2. Ticket change [31d0146b9a] (rid 93498) by welch on 2000-10-26 08:21:16:

    1. closedate changed to: "2000-10-26T01:21:16"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [994e875acc] (rid 110769) by dgp on 2001-04-05 06:54:27:

    1. closedate changed to: "2001-04-04T23:54:27"
    2. closer changed to: "dgp"
    3. subsystem changed to: "53. Configuration and Build Tools"