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

ryuukk_ ryuukk.dev at gmail.com
Sat Jul 13 14:53:41 UTC 2024


First of all, i build with `ldmd2`

Second of all, i do not use DUB

Lastly, it fails with:


```
ldmd2 -L-static  ...
```

```
/usr/bin/ld: cannot find -lphobos2-ldc-shared: No such file or 
directory
/usr/bin/ld: cannot find -ldruntime-ldc-shared: No such file or 
directory
```


Why does it complain about SHARED when passing STATIC?




More information about the Digitalmars-d-learn mailing list