Is it possible to suppress standard lib and dlang symbols in dylib (macos)

David dangermouseb at forwarding.cc
Sun Mar 14 11:30:53 UTC 2021


On Sunday, 14 March 2021 at 01:38:23 UTC, David Skluzacek wrote:
> On Thursday, 11 March 2021 at 22:10:04 UTC, David wrote:
>> I wasn't aware that object files could be manipulated like the 
>> strip manual page - thx for the heads up.
>
> With the caveats that the linked post is almost 14 years old, I 
> can't try this command myself, and the ldc solution is probably 
> preferable if you can get it to work - if you want to compile 
> with dmd and use the strip command, this might help you (the OP 
> answered his own question at the bottom):
>
> https://forum.juce.com/t/how-to-build-dylib-exporting-only-wanted-symbols/2180
>
> He suggests doing:
>
> strip -u -r -s FILE_CONTAINING_EXPORTS_LIST MY_DYLIB.dylib

It looks straight forward that way - thx


More information about the Digitalmars-d-learn mailing list