[darcs-users] darcs build on win32 (msys/mingw) fails

David Roundy droundy at abridgegame.org
Wed Mar 17 13:58:51 UTC 2004


On Wed, Mar 17, 2004 at 02:47:51PM +0100, Gour wrote:
> David Roundy (droundy at abridgegame.org) wrote:
> 
> > I've made a change to make configure use ghc as the gcc for its tests.  It
> > works for me, and I'd be interested in hearing if it helps with the windows
> > compile.  This really seems like the right thing to do--the whole point of
> > configure is to automatically test for these things.  I suppose you'll
> > still have to add the paths, but this way if you don't, configure *should*
> > tell you there's a problem.
> 
> This change break build on my Gentoo box:
[...]
> Here is config.log:
> 
> [...]
> configure:1761: checking for C compiler default output file name
> configure:1764: ghc -Os -march=pentium3 -mfpmath=sse -msse -mmmx -fomit-frame-po
> inter -pipe -funroll-loops   conftest.c  >&5
> ghc-6.2: unrecognised flags: -Os -march=pentium3 -mfpmath=sse -msse -mmmx -fomit
> -frame-pointer -pipe -funroll-loops

Argh.  I should have thought of that.  ghc needs the CFLAGS to be preceded
with -optc.  I think the thing to do is probably to create a wrapper around
ghc that will add -optc to all flags it is given.  I'll try to figure this
out tomorrow.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list