This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with -static-libstdc++ on Mac OS X
- From: Simon Wright <simon at pushface dot org>
- To: Iain Sandoe <iain at codesourcery dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Thu, 18 Jun 2015 13:50:53 +0100
- Subject: Re: Problem with -static-libstdc++ on Mac OS X
- Authentication-results: sourceware.org; auth=none
- References: <C16C1E37-10FC-485A-9063-3041D240B809 at pushface dot org> <CAH6eHdRqhe-r+k+Y3PArAiAy0goObTFqLQHZ6Ett9ek5PtudXw at mail dot gmail dot com> <821A3339-EFD3-4A19-823A-C60C238A3C82 at codesourcery dot com> <712230B2-58CC-4C1E-9EB3-BF9AC12E64FF at pushface dot org>
On 18 Jun 2015, at 10:26, Simon Wright <simon@pushface.org> wrote:
> Just building 4.9.3 (as patched by AdaCore) now.
Worked OK - I think.
default: both libgcc and libstdc++ are shared.
-static-libstdc++: libgcc is shared, libstdc++ is static.
-static-libgcc: both libgcc and libstdc++ are static.
-shared-libstdc++: g++: error: unrecognized command line option '-shared-libstdc++'
> For some reason the patch didn’t apply, though the line number was right — perhaps some mail-mangling. Did it by hand.
One of your lines got wrapped, and copy/paste retained the extra linefeed.