lfs/chapter05/gcc-pass1.xml
Matthew Burgess 17700191e9 Upgraded to DocBook 4.4 DTD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4603 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2005-01-30 18:06:48 +00:00

51 lines
1.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-tools-gcc-pass1" role="wrap">
<title>GCC-&gcc-version; - Pass 1</title>
<?dbhtml filename="gcc-pass1.html"?>
<sect2 role="package"><title/>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem><seg>4.4 SBU</seg><seg>300 MB</seg></seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of GCC</title>
<para>Create a build dir:</para>
<screen><userinput>mkdir ../gcc-build
cd ../gcc-build</userinput></screen>
<para>Prepare GCC for compilation:</para>
<!--NEW-->
<screen><userinput>CC="gcc -B/usr/bin" ../gcc-&gcc-version;/configure \
--prefix=/tools --libexecdir=/tools/lib \
--with-local-prefix=/tools --disable-nls \
--enable-shared --enable-languages=c</userinput></screen>
<para>Continue with compiling the package:</para>
<screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen>
<para>Now install the package:</para>
<screen><userinput>make install</userinput></screen>
<para>Create a symlink:</para>
<screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
</sect2>
</sect1>