From 036454155c780378e4133d9f8d0e29e59ca785c2 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 9 Sep 2003 11:18:25 +0000 Subject: [PATCH 1/1] [project @ 2003-09-09 11:18:25 by simonmar] Slight amendment to the porting instructions to ensure that the target's config.h doesn't get overwritten on the host system. --- docs/building/building.sgml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/docs/building/building.sgml b/docs/building/building.sgml index 9a0fa52..276d4b4 100644 --- a/docs/building/building.sgml +++ b/docs/building/building.sgml @@ -3823,17 +3823,6 @@ GhcStage2HcOpts = -O -fvia-C -keep-hc-files - Copy - T/ghc/includes/config.h - to - H/ghc/includes. - Note that we are building on the host machine, using the - target machine's config.h file. This - is so that the intermediate C files generated here will - be suitable for compiling on the target system. - - - Edit H/mk/config.mk: @@ -3849,16 +3838,30 @@ GhcStage2HcOpts = -O -fvia-C -keep-hc-files - -$ cd H/glafp-utils && make boot && make - + Copy + T/ghc/includes/config.h + to + H/ghc/includes. + Note that we are building on the host machine, using the + target machine's config.h file. This + is so that the intermediate C files generated here will + be suitable for compiling on the target system. + - + + + Touch config.h, just to make + sure it doesn't get replaced during the build: + +$ touch H/ghc/includes/config.h + + + Now build the compiler: +$ cd H/glafp-utils && make boot && make $ cd H/ghc && make boot && make - Don't worry if the build falls over in the RTS, we don't need the RTS yet. -- 1.7.10.4