Build fully static library by the compiler?

ryuukk_ ryuukk.dev at gmail.com
Sun Aug 11 08:30:05 UTC 2024


On Saturday, 10 August 2024 at 08:07:14 UTC, Denis Feklushkin 
wrote:
> On Friday, 9 August 2024 at 22:32:21 UTC, Alex Bryan wrote:
>
>>> Point is that D can be not a main language of the project and 
>>> it is unconvient to extract by somehow paths to phobos and 
>>> druntime at last stages of project build.
>>
>> ldc2 has the --static option, though, looking from ldc2 --help 
>> I'm not 100% sure exactly what that does.
>
> --static means executable creation, not a static library

If i remember correctly, you have to pass 
`--link-defaultlib-shared=false`


More information about the Digitalmars-d-learn mailing list