https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80556
--- Comment #36 from simon at pushface dot org --- (In reply to Eric Botcazou from comment #35) > The workaround is to filter out -static-libgcc in configure.ac on Darwin but > to leave -static-libstdc++, so why is it still looking for the shared > libstdc++? Because (as in comment 25) g++ linking on Darwin silently ignores -static-libstdc++ (if it sees -shared-libgcc). I've verified this with a C++ "hello world". This PR is labelled 'target', is that right? I’ve worked out a patch and bootstrapped (see attachment). The patch is against the gcc-8-20170558 snapshot, would that be OK? One thing I’m not sure of is what versions of Darwin this applies to. I’ve tested for *-apple-darwin*.
