[patch] Fix i386-mingw32 build failure

Mark Mitchell mark@codesourcery.com
Wed Aug 10 17:05:00 GMT 2005


Christopher Faylor wrote:

> This would conflict with my proposed changes to pex-win32.c .  It seems
> like getting '#!' functioning on mingw would be a better solution than
> relying on $(LN) on mingw.

FWIW, I'm opposed to the "#!" change to MinGW.  It just seems hackish to 
me, and it means that we'll pay an additional cost on all normal uses of 
pex-* on MinGW, even after the compiler is installed.

The correct solution to this is to install the assemblers and linkers 
before building the compiler, in places that the compiler expects to 
find them, on all systems, in all configurations, and then totally avoid 
the symlinks/copies/etc. out of the main tree.  I realize that people 
who do one-tree builds will object, but my answer to that is just that 
there should be an installation stage between building binutils and 
building gcc.

The even more correct solution is to not build anything with the 
compiler (including libgcc) until after it is installed.  Then, it will 
just look where it would normally look, and all will be well.

However, I also recognize that we need to do something before 4.1 to fix 
this problem and that we need something simple enough to be viable in 
that timeframe.  But, if Paolo can fix this without having to add #!, I 
think that would be great.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc mailing list