Alan W. Irwin wrote:

> On 2008-10-10 11:49-0700 Alan W. Irwin wrote:
>
>> Later today I hope to report visibility fixes for Tcl, psttc, and the 
>> cairo
>> device driver...
>
>
> Just finished the tclmatrixd and plplottcltk namespace changes (revision
> 8878).  I also dropped the PLDLLIMPEXP* macros from the source code as 
> much
> as possible and left it to the headers to use the macros instead.  The
> tcl/tk build now works (again?) with export CC='gcc -fvisibility=hidden'.
> ctest for tcl also works.
>
> I actually don't have any idea why this works.  Here are the nm results
>
Hi Alan,

the reason is actually very simple: Tcl registers the pointers to these 
functions
itself, rather than have the linker do it. That means the functions need 
to be
visible to the call to Tcl_CreateCommand (or Tcl_CreateObjCommand) and
these calls reside in the initialisation routine - the only one that 
needs to be exported.

Regards,

Arjen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to