How to build a statically linked executable, before i loose my mind

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sat Jul 13 16:44:22 UTC 2024


On 14/07/2024 4:37 AM, ryuukk_ wrote:
> On Saturday, 13 July 2024 at 16:16:20 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> Seeing ``_d_arraybounds_slice`` missing sounds like druntime isn't 
>> being linked against.
>>
>> It is possible that your distribution of ldc doesn't include a static 
>> build of druntime/phobos. You need to verify that ld is trying to link 
>> against a static build and that static build exists.
> 
> `curl -fsS https://dlang.org/install.sh | bash -s ldc`

Okay yup, looks like its all there in latest release.

Have to dump out what ld is getting passed to it, and what it thinks it 
is doing next.


More information about the Digitalmars-d-learn mailing list