This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PING [4.1 regression, patch] build i686-pc-mingw32
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: patch <gcc-patches at gcc dot gnu dot org>, ian at airs dot com,Christopher Faylor <me at cgf dot cx>
- Date: Wed, 20 Jul 2005 08:39:38 +1200
- Subject: Re: PING [4.1 regression, patch] build i686-pc-mingw32
- References: <42DCC2D5.5010900@gmail.com><20050719195238.GB23513@trixie.casa.cgf.cx> <42DD5C82.4040502@gmail.com>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
"FX Coudert" wrore:
"Christopher Faylor" wrote:
> > I'd prefer that Danny review this but neither of us has the right to
> > approve this patch.
It works, but I don't think is he only way,
>
<snip>
>
> > However, it seems like you're adding extra stuff to the Makefile where
> > it is already trying to do the right thing if $(LN) fails. Couldn't LN
> > just be declared as "cp" for mingw or, alternatively, couldn't it be
> > defined as some failing command so that the cp in the failing condition
> > would be invoked?
>
> Only the remaining case, which creates a shell script, fails on mingw32.
> The shell script is spawned to call the assembler, which fails. Only
> real win32 executables can be spawned.
>
an "as.bat" (or "as.cmd" on NT) containing just
/path/to/original-as-for-target %1 %2 %3 %4
works too. But I think the use of "cp" is a simpler solution.
I just configure using --with-as=/path/to/original-as-for-target and I don't run
into the problem.
Danny
> FX