[committed] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library
ibuclaw@gdcproject.org
ibuclaw@gdcproject.org
Tue Oct 5 08:02:01 GMT 2021
> On 04/10/2021 18:48 Iain Sandoe <idsandoe@googlemail.com> wrote:
>
> For targets that don’t support HAVE_LD_STATIC_DYNAMIC it would be useful
> to push the option back out, so that they can use that to substitute a static version
> of the library using %:replace-outfile(-lxxxxx libxxxxx+.a%s) [ see darwin.h for
> examples. ] .. I suppose we could figure out a follow-on patch and test that on
> Darwin?
>
> so
> #else
> … code to push the -libstdc++ out
>
> (yes, we do have this problem also with the g++ driver… I posted a patch eons
> ago .. but suspect it was never applied)
>
Sure, seems reasonable to me, will follow up.
I had a look at darwin.h, and it occurs to me that you probably will be wanting -static-libphobos added there as well, which means moving that option to common.opt.
Iain.
More information about the Gcc-patches
mailing list