123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/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>
- <screen><userinput>mkdir ../gcc-build
- cd ../gcc-build</userinput></screen>
- <para>Prepare GCC for compilation:</para>
- <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>
- <screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
- </sect2>
- </sect1>
|