This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Build libgcc_s on Windows
On 9/3/08, Kai Tietz <Kai.Tietz@onevision.com> wrote:
> NightStrike <nightstrike@gmail.com> wrote on 02.09.2008 17:30:48:
>
> > On 9/2/08, Kai Tietz <Kai.Tietz@onevision.com> wrote:
> > > Hi,
> > >
> > > by this patch the build problems about gthr-win32.c are fixed for me.
> The
> > > problem is that in libgcc the header system.h isn't inherited and so
> > > CONST_CAST2 isn't declared. I add to gthr-win32.h an optional
> declaration
> > > of this macro.
> > >
> > > NightStrike, does this patch works for you?
> > This patch brings us back to the failures of 139837 and 139838. So it
> > fixes the failure of 139839, but the other remains.
>
> Fine. I changed the link libraries order of SHLIB_LC. The import libraries
> kernel32 and co. needs to be put at the end of SHLIB_LC, so that ld is
> able to find all necessary symbols. NightStrike, could you try this patch
> if it is working for you?
>
> ChangeLog
>
> 2008-09-03 Kai Tietz <kai.tietz@onevision.com>
>
> * gthr-win32.h (CONST_CAST2): Added.
> * config/i386/t-mingw32 (SHLIB_LC): Change order of import
> libraries.
With this patch, I can build the entire toolchain again.