You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepend each argument in D_LINKER_ARGS with "-Wl," when using GDMD.
The above is needed because the arguments reported by GDMD are what is
passed to COLLECT2 while D_LINKER_ARGS are later passed to CXX.
The problem with that is that without "-Wl," prefix the -Bstatic and
-Bdynamic arguments before and after -lgphobos and -libgdruntime are
dropped. And that is a problem because without these the produced LDC is
linked dynamically to libgphobos and libgdruntime so these have to be
available whereever LDC is used.
Once libgphobos and libgdruntime were linked statically several symbol
conflicts were revealed which are fixed by moving the offending symbols
within "version (LDC)" blocks.
0 commit comments