Dynamic and Static Linking

Matthias Klumpp via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sat Mar 18 19:52:22 PDT 2017


On Saturday, 18 March 2017 at 22:20:16 UTC, Gerald wrote:
> On Saturday, 18 March 2017 at 21:42:29 UTC, Mike Wey wrote:
>> You should be able to specify them using `-defaultlib`
>>
>>  -defaultlib=:libphobos2.a,:libdruntime.a
>>
>> With the colon at the start of the library name ld will use 
>> the library name as is and won't add a lib prefix and an 
>> extension.
>
> Thanks as always Mike, I just had to change the names to append 
> -ldc to them and it worked great.

Ah! It's comma-separated! That explains why this didn't work for 
me when I tried it last time ^^



More information about the digitalmars-d-ldc mailing list