From 711a6e963883e2a84ccfd878806651144dae353a Mon Sep 17 00:00:00 2001 From: simonpj Date: Wed, 25 Sep 2002 10:12:44 +0000 Subject: [PATCH] [project @ 2002-09-25 10:12:44 by simonpj] More notes about building on windows --- docs/building/building.sgml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/building/building.sgml b/docs/building/building.sgml index 669f321..071f4c9 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -4024,6 +4024,19 @@ compiles require Cygwin. The instructions that follow describe how to build GHC-mingw. It is possible to build GHC-cygwin, but it's not a supported route, and the build system might be flaky. + +In your build tree, you build a compiler called ghc-inplace. It +uses the gcc that you specify using the + flag when you run +configure (see below). +The makefiles are careful to use ghc-inplace (not gcc) +to compile any C files, so that it will in turn invoke the right gcc rather that +whatever one happens to be in your path. However, the makefiles do use whatever ld +and ar happen to be in your path. This is a bit naughty, but (a) they are only +used to glom together .o files into a bigger .o file, or a .a file, +so they don't ever get libraries (which would be bogus; they might be the wrong libraries), and (b) +Cygwin and Mingw use the same .o file format. So its ok. + @@ -4096,7 +4109,8 @@ directory, there's no need to copy anything. By default, cygwin provides the command shell ash -as sh.exe. It has a couple of 'issues', so +as sh.exe. It has a couple of 'issues' (to do with quoting +and length of command lines), so in your /bin directory, make sure that bash.exe is also provided as sh.exe (i.e. overwrite the old sh.exe with a copy of @@ -4161,6 +4175,11 @@ generate code, so you have to install that. Just pick up a mingw bundle at http://www.mingw.org/. We install it in c:/mingw. +Do not add any of the mingw binaries to your path. +They are only going to get used by explicit access (via the --with-gcc flag you +give to configure later). If you do add them to your path +you are likely to get into a mess because their names overlap with Cygwin binaries. + @@ -4215,6 +4234,13 @@ option . + +If you are paranoid, delete config.cache if it exists. +This file occasionally remembers out-of-date configuration information, which +can be really confusing. + + + After autoconf run ./configure in -- 1.7.10.4