How can I fully include "libdruntime-ldc.a" and "libphobos2-ldc.a" in my .so lib ?

Basile B. b2.temp at gmx.com
Thu Apr 16 13:44:48 UTC 2020


On Thursday, 16 April 2020 at 12:45:21 UTC, kinke wrote:
> On Thursday, 16 April 2020 at 10:04:54 UTC, Basile B. wrote:
>> Just got it to work using
>>
>>   "libs" : [
>>     "druntime-ldc",
>>     "phobos2-ldc"
>>   ]
>
> $ ldc2 -help | grep -- -link-defaultlib-shared
>   --link-defaultlib-shared               - Link with shared 
> versions of default libraries. Defaults to true when generating 
> a shared library (-shared).
> Boolean options can take an optional value, e.g., 
> -link-defaultlib-shared=<true,false>.

Thanks. The first solution was not working acutally, got SIGABRT 
when running


More information about the Digitalmars-d-learn mailing list