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

Reply via email to