On Mar 15, 2004, at 9:22 AM, Arthur Bergman wrote:

On 15 Mar 2004, at 17:20, Jeff Clites wrote:

We should be able to get the linker to only expose our external entry points from libparrot. That way, we don't have to worry about the naming of API which isn't supposed to be called from outside. (If it works, it's simpler and safer than relying on a prefix.)

And how would this be done across platforms, if this works I am happy with it, but I don't know how.

On Mac OS X and Linux at least, as I understand it this can be done with either 'ld' or 'strip'. (The 'ld' argument for this on Mac OS X is -exported_symbols_list, and on Linux it's --retain-symbols-file, each taking the name of a file containing the list of symbols to retain.) I'd imagine that other Unices have similar linker options, and I'd think that Windows would have an equivalent also.


I haven't actually tried this, but the tools seem to be there.

JEff

Reply via email to