summaryrefslogtreecommitdiff
path: root/docs/building
diff options
context:
space:
mode:
authorsimonmar <unknown>2003-09-09 11:18:25 +0000
committersimonmar <unknown>2003-09-09 11:18:25 +0000
commit036454155c780378e4133d9f8d0e29e59ca785c2 (patch)
tree344ace7b344d865b42e9490e74b0e7b6c9911ca7 /docs/building
parentb55c9113d0e0ebdd5f4fcf579efdcfdd952566fa (diff)
downloadhaskell-036454155c780378e4133d9f8d0e29e59ca785c2.tar.gz
[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.
Diffstat (limited to 'docs/building')
-rw-r--r--docs/building/building.sgml35
1 files changed, 19 insertions, 16 deletions
diff --git a/docs/building/building.sgml b/docs/building/building.sgml
index 9a0fa52198..276d4b4a1e 100644
--- a/docs/building/building.sgml
+++ b/docs/building/building.sgml
@@ -3823,17 +3823,6 @@ GhcStage2HcOpts = -O -fvia-C -keep-hc-files
</listitem>
<listitem>
- <para>Copy
- <filename><replaceable>T</replaceable>/ghc/includes/config.h</filename>
- to
- <filename><replaceable>H</replaceable>/ghc/includes</filename>.
- Note that we are building on the host machine, using the
- target machine's <literal>config.h</literal> file. This
- is so that the intermediate C files generated here will
- be suitable for compiling on the target system.</para>
- </listitem>
-
- <listitem>
<para>Edit
<filename><replaceable>H</replaceable>/mk/config.mk</filename>:</para>
<itemizedlist>
@@ -3849,16 +3838,30 @@ GhcStage2HcOpts = -O -fvia-C -keep-hc-files
</listitem>
<listitem>
-<screen>
-$ cd <replaceable>H</replaceable>/glafp-utils && make boot && make
-</screen>
+ <para>Copy
+ <filename><replaceable>T</replaceable>/ghc/includes/config.h</filename>
+ to
+ <filename><replaceable>H</replaceable>/ghc/includes</filename>.
+ Note that we are building on the host machine, using the
+ target machine's <literal>config.h</literal> file. This
+ is so that the intermediate C files generated here will
+ be suitable for compiling on the target system.</para>
+
</listitem>
-
+
+ <listitem>
+ <para>Touch <literal>config.h</literal>, just to make
+ sure it doesn't get replaced during the build:</para>
+<screen>
+$ touch <replaceable>H</replaceable>/ghc/includes/config.h</screen>
+ </listitem>
+
<listitem>
+ <para>Now build the compiler:</para>
<screen>
+$ cd <replaceable>H</replaceable>/glafp-utils && make boot && make
$ cd <replaceable>H</replaceable>/ghc && make boot && make
</screen>
-
<para>Don't worry if the build falls over in the RTS, we
don't need the RTS yet.</para>
</listitem>