This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [build,mingw32] Build compiler with -D__USE_MINGW_ACCESS so that it works on Vista
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'François-Xavier Coudert' <fxcoudert at gmail dot com>, 'gcc-patches' <gcc-patches at gcc dot gnu dot org>
- Cc: cgf at gcc dot gnu dot org
- Date: Thu, 06 Sep 2007 22:50:04 +1200
- Subject: RE: [build,mingw32] Build compiler with -D__USE_MINGW_ACCESS so that it works on Vista
> From: François-Xavier Coudert
> Sent: Thursday, 6 September 2007 9:56 p.m.
>
> The Windows access() function changed behaviour with Vista: instead of
> ignoring X_OK (Windows doesn't check for execute permission), it now
> causes an invalid parameter error. This in turns can cause weird
> errors (see PR). Danny is the author of the PR analysis and indicated
> that building the compiler with -D__USE_MINGW_ACCESS solves this
> problem.
>
> This patch does exactly this, by adding a host makefile fragment for
> mingw. This fixes the reporter's problem, and was bootstrapped on
> i386-pc-mingw32.
>
> OK to commit?
OK by me.
But see duplicate PR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30972
where other approaches have been suggested.
Thanks.
Danny
>
> FX
>