Is it possible to suppress standard lib and dlang symbols in dylib (macos)
David
dangermouseb at forwarding.cc
Thu Mar 11 22:10:04 UTC 2021
On Thursday, 11 March 2021 at 18:35:37 UTC, Imperatorn wrote:
> On Thursday, 11 March 2021 at 17:00:06 UTC, David wrote:
>> On Thursday, 11 March 2021 at 14:49:32 UTC, Imperatorn wrote:
>>> On Thursday, 11 March 2021 at 10:29:55 UTC, David wrote:
>>>> On Thursday, 11 March 2021 at 08:40:58 UTC, Imperatorn wrote:
>>>>> [...]
>>>>
>>>>>> [...]
>>>> Of course - but unless I've missed something I don't believe
>>>> it works on macos.
>>>
>>> Hmm, I'm not sure. Have you tried?
>>
>> Nope the documentation implies it only works on windows so
>> I've ruled it out. But the thing I'm trying to solve is
>> suppression of symbols in the library.
>
> I see, there might be something similar to .def?
> https://docs.microsoft.com/en-us/cpp/build/reference/module-definition-dot-def-files?redirectedfrom=MSDN&view=msvc-160
>
> Or I guess you could strip it?
> https://www.linux.org/docs/man1/strip.html
>
> But I guess you already thought of that and want to not even
> generate them in the first place?
I was wondering if there was something similar to def - my next
attempt will be a combination of ldc and export.
I wasn't aware that object files could be manipulated like the
strip manual page - thx for the heads up.
More information about the Digitalmars-d-learn
mailing list