[ping*2] fix build failure of x86_64-mingw32, missing crtbegin/crtend.o
Olivier Hainque
hainque@adacore.com
Wed Aug 20 12:45:00 GMT 2014
Hello,
Ping #2 for https://gcc.gnu.org/ml/gcc-patches/2014-07/msg00237.html
Thanks in advance for your feedback,
With Kind Regards,
Olivier
On Jul 3, 2014, at 16:57 , Olivier Hainque <hainque@adacore.com> wrote:
> From gcc/i386/config/mingw32.h, STARTFILE_SPEC and ENDFILE_SPEC include
> crtbegin.o and crtend.o unconditionally.
>
> libgcc/config.host includes crtbegin.o and crtend.o in extra_parts for
> i[34567]86-*-mingw* but not for x86_64-*-mingw*.
>
> Building a toolchain for x86_64-pc-mingw32 then rapidly fails with complaints
> about crtbegin.o and crtend.o missing.
>
> This patch is a proposal to fix this by adding the objects to extra_parts,
> as well as i386/t-cygming to tmake_file so rules are available to build the
> objects.
>
> Tested by verifying that a build with --target=x86_64-pc-mingw32
> proceeds to completion after the change.
>
> OK to commit ?
>
> Thanks in advance for your feedback,
>
> With Kind Regards,
>
> Olivier
>
> 2014-07-02 Olivier Hainque <hainque@adacore.com>
>
> libgcc/
> * config.host (x86_64-*-mingw*): Add i386/t-cygming to tmake_file
> and crtbegin.o + crtend.o to extra_parts.
>
> <mingw-crtstuff.diff>
More information about the Gcc-patches
mailing list