static linking

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 26 10:14:52 PDT 2015


On 07/26/2015 05:19 PM, Laeeth Isharc wrote:
> 
> How do I do the same on gdc and ldc ?  Since running times may be a
> matter of seconds, speed and startup time counts especially for lambda. 
> Probably starting via nodejs is an unnecessary tax, but I guess they
> will get rid of that requirement in time.

AFAIK only ldc supports a dynamic phobos library ATM, and it shouldn't
be default. But in both cases -L-l:libphobos2.a should do the job,
though I think it's called libgphobos2.a for gdc and libphobos2-ldc.a
for ldc.


More information about the Digitalmars-d-learn mailing list