Hi Neil,

Just reading through the Windows build instructions:
http://hackage.haskell.org/trac/ghc/wiki/Building/Windows

./configure --host=i386-unknown-mingw32 -with-gcc=C:/Mingw/bin/gcc.exe
--with-ld=C:/Mingw/bin/ld.exe

I notice that with-gcc has 1 dash before it, and with-ld has 2 dashes
before it - that seems a bit weird. Additionally, if I do "which gcc" or "which ld" I get the mingw versions, so I would have thought the --with was redundant. Is it correct as it stands - it works, but I just want to check it isn't just working anyway.

definitely 2 dashes, as './configure --help' will confirm. fixed, thanks.

As for the need - that log specifically tried not to get any cygwin gcc tools, to keep the risk of accidents low, but people might need to install both tool chains for other projects, so I left those in. configure should check and complain if there's a mix up, though (looking into configure.ac, it seems to check for mingw gcc, but only for gnu ld?). There was a time when the gcc path wasn't normalized so I still use --with-gcc (other parts of the build system try to extract information from that path), but that might have been fixed in the meantime?

http://www.haskell.org/pipermail/cvs-ghc/2007-June/036051.html

Claus

ps. it seems as if haddock/happy/alex were at one time part of
   the mingw ghc installer, or at least of the nightly snapshots.
   Hence the reference to c:/ghc/ghc-6.4.1/ in the log for them.


_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to