Is it possible to suppress standard lib and dlang symbols in dylib (macos)
David Skluzacek
david.skluzacek at gmail.com
Sun Mar 14 01:38:23 UTC 2021
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
More information about the Digitalmars-d-learn
mailing list