ldc2 -static fails: error: cannot find -lphobos2-ldc or -ldruntime-ldc

Jonathan daemon512 at gmail.com
Thu Aug 13 10:18:44 UTC 2020


On Thursday, 13 August 2020 at 07:17:46 UTC, kinke wrote:
> On Wednesday, 12 August 2020 at 11:34:34 UTC, Jonathan wrote:
>> Any ideas on what needs to happen to solve this issue?
>
> Seems like the Gentoo package contains shared druntime/Phobos 
> libs only, no static libs. That's probably what most distros 
> do; some like Alpine have an extra package for the static libs 
> IIRC. The distro packages are community-maintained.
>
> The simplest solution is probably to use an official package 
> from GitHub.

I just found a solution, though it is entirely possible that your 
suggestion would also work.

Gentoo compiles from source and has use flags.  I didn't see that 
there was a `static-libs` use flag that was deactivated.  When I 
activated the flag and recompiled, it works as intended.


More information about the digitalmars-d-ldc mailing list