How to reduce executable filesize
Andre Pany
andre at s-e-a-p.de
Fri Jul 12 22:22:01 UTC 2019
On Friday, 12 July 2019 at 16:42:06 UTC, Andre Pany wrote:
> On Friday, 12 July 2019 at 16:37:05 UTC, Andre Pany wrote:
>> Hi,
>> If I remember correctly on linux (ubuntu) you can compile an
>> executable which uses and DRuntime as shared objects.
>>
>> How is the ldc2 command for this?
>> I assume I can find the shared objects for phobos and DRuntime
>> in the ldc2 linux x86_64 release archive?
>>
>> Is there also an additional argument to strip any non used
>> symbols?
>>
>> Kind regards
>> Andre
>
> Should read ...which uses Phobos and DRuntime as shared...
I found it:
ldc2 app.d -defaultlib=druntime-ldc-shared,phobos2-ldc-shared
-debuglib=druntime-ldc-debug-shared,phobos2-ldc-debug-shared
Kind regards
Andre
More information about the digitalmars-d-ldc
mailing list