Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3498ac0b4b1d13ed559924633949e7a52626fbf4
Ticket: 2959069fffffffffffffffffffffffffffffffff
Support for -fvisibility=hidden
User & Date: nijtmans on 2010-02-26 06:53:31
Changes

  1. icomment:
    Thanks for the reaction!
    
    - The handling of __attribute__((__visibility__("default"))) is done
      in tcl.h, and this is already available. Also, the needed
      -DBUILD_tcl and -DBUILD_tk is already part of the current
      Makefile.in. It should work for Darwin as is....
    
    > After all the work adding MODULE_SCOPE everywhere, where is the
    > need/benefit to removing it again?
    I wouldn't start removing it, until it's been well tested on
    all platforms. (I called it 'deprecate', not 'remove'). However,
    being obliged to decorate all exported symbols with
    EXTERN and all others with MODULE_SCOPE,
    that's asking for trouble forgetting one. Before
    starting with this, I compared the list of Tk exported
    symbols, and found two problematic symbols.
    One that didn't respect the EXTERN because
    of a missing include (TkpCmapStressed), another
    symbol that was not supposed to be exported at
    all (TkSetTransientFor). I fixed those two, but with
    -fvisibility=hidden, it would already have been
    discovered long ago....
    
    Anyway, it's not high priority. I agree that
    the attribute should be kept as fallback.
    
    Any more remarks?
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"