2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-gcc-pass1" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>GCC-&gcc-version; - Pass 1</title>
|
|
|
|
<?dbhtml filename="gcc-pass1.html"?>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>4.4 SBU</seg><seg>300 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of GCC</title>
|
|
|
|
|
2004-12-22 12:06:22 +00:00
|
|
|
<para>Create a build dir:</para>
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<screen><userinput>mkdir ../gcc-build
|
|
|
|
cd ../gcc-build</userinput></screen>
|
|
|
|
|
2003-11-02 22:20:47 +00:00
|
|
|
<para>Prepare GCC for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2005-01-30 12:51:22 +00:00
|
|
|
<!--NEW-->
|
2004-08-28 09:35:40 +01:00
|
|
|
<screen><userinput>CC="gcc -B/usr/bin" ../gcc-&gcc-version;/configure \
|
|
|
|
--prefix=/tools --libexecdir=/tools/lib \
|
|
|
|
--with-local-prefix=/tools --disable-nls \
|
2004-08-28 02:17:34 +01:00
|
|
|
--enable-shared --enable-languages=c</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2004-12-22 12:06:22 +00:00
|
|
|
<para>Create a symlink:</para>
|
|
|
|
|
2004-01-17 07:53:07 +00:00
|
|
|
<screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
</sect2>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
|
|
|
</sect1>
|