shared static this not invoked on almalinux 8.5, all is well on fedora 35

kinke noone at nowhere.com
Fri Jun 10 11:48:37 UTC 2022


On Thursday, 9 June 2022 at 08:54:51 UTC, ichneumwn wrote:
> The code is built using meson, and using meson compile 
> --verbose I can see that the compilation steps are the same, 
> and the linking step looks like this and is identical on both 
> systems:
>
>         /usr/bin/cc mwe.p/dsostub.d.o 
> mwe.p/md_static_import.d.o mwe.p/main.d.o -o mwe -Xlinker 
> --allow-shlib-undefined -L/opt/ldc2-1.28.0/lib 
> -lphobos2-ldc-shared -ldruntime-ldc-shared 
> -Wl,-rpath,/opt/ldc2-1.28.0/lib -Wl,--gc-sections -lrt -ldl 
> -lpthread -lm -m64

Ah, so meson seems to link manually, not via the D compiler, 
ignoring LDC's preference for linkers (so you most likely ended 
up using uber-slow ld.bfd instead of ld.gold) etc. It needs to be 
adapted for LDC v1.29 (to include the special prebuilt object 
file mentioned above that LDC would link in implicitly) if it 
hasn't been already - 'big news' #5 in 
https://github.com/ldc-developers/ldc/releases/tag/v1.29.0.


More information about the digitalmars-d-ldc mailing list