http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239

--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Gabriel Dos Reis from comment #9)
> (In reply to Iain Sandoe from comment #8)
> > note that the patch at:
> > 
> > http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01460.html
> > 
> > is not quite enough to fix this on Darwin - since we use :
> > 
> >  %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++
> > libstdc++.a%s)}
> > 
> > to implement -static-libstadc++.
> > 
> > The relevant dir needs to be added as "-B" for this to work - unfortunately,
> > I'm not able to look at this right now..
> 
> -static-libstdc++ was already being used before this patch.  So, the "-B"
> directories where already there.

"grep -R -static-libstdc++ gcc/ada" suggests that -static-libstdc++ only
appears in a Changelog entry.

also the gcc driver silently ignores -static-libstdc++.

certainly, the -B options are passed when other gcc components are built (or it
would fail to bootstrap on Darwin). 

However, your current patch fails with:
ld: file not found: libstdc++.a

Reply via email to