This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Build libgcc_s on Windows
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Aug 2008 08:00:21 -0400
- Subject: Re: [PATCH] Build libgcc_s on Windows
Brian Dessent wrote:
> Danny Smith wrote:
>
>> The "downside" of this is that we force user to always add
>> "-shared-libgcc" to gcc command line rather than allow the clever user
>> to rely on a libgcc.dll.a vs libgcc.a link order diff.
>
> I'm not sure that will work in the case of Cygwin then, since the plan
> as I understand it is to behave like Linux: shared libgcc is the default
> if not specified, and must be overridden with -static-libgcc.
IIRC, this is one of the differences between mingw and cygwin with
regards to shared libgcc: for the former, they decided that static
runtimes should be the default, given the strong desire of most mingw
users for so-called 'monolithic' executables. On cygwin, of course, the
more like unix the better, so shared libgcc should be the default.
--
Chuck