[PATCH g++ driver] Push -static-libstdc++ back onto the command line to allow spec substitutions to use it.
Iain Sandoe
iain@codesourcery.com
Tue Jul 14 17:58:00 GMT 2015
On 14 Jul 2015, at 18:24, Jason Merrill wrote:
> On 06/18/2015 04:12 AM, Iain Sandoe wrote:
>> The patch below pushes -static-libstdc++ onto the output command line (for targets without -Bstatic/dynamic) so that such specs have an opportunity to fire.
>
> Won't that produce an unrecognized flag error from the linker?
IFF the target doesn't support -Bstatic/dynamic *and* doesn't provide a spec %{static-libstdc++:...
then, that could happen.
There's a fairly small group of non-binutils targets - other than Darwin that would be maybe AIX and some Solaris versions (and I believe that the native linkers there do support -Bstatic/dynamic), however, I'll double-check with the maintainers.
Iain
More information about the Gcc-patches
mailing list