source:
chapter05/gcc-pass1.xml@
2c17ddc
Last change on this file since 2c17ddc was 1770019, checked in by , 20 years ago | |
---|---|
|
|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ |
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent"> |
4 | %general-entities; | |
5 | ]> | |
[9652249] | 6 | <sect1 id="ch-tools-gcc-pass1" role="wrap"> |
[673b0d8] | 7 | <title>GCC-&gcc-version; - Pass 1</title> |
8 | <?dbhtml filename="gcc-pass1.html"?> | |
[bc82645e] | 9 | |
[9652249] | 10 | <sect2 role="package"><title/> |
[5888299] | 11 | |
[9652249] | 12 | <segmentedlist> |
13 | <segtitle>&buildtime;</segtitle> | |
14 | <segtitle>&diskspace;</segtitle> | |
15 | <seglistitem><seg>4.4 SBU</seg><seg>300 MB</seg></seglistitem> | |
16 | </segmentedlist> | |
[673b0d8] | 17 | |
[9652249] | 18 | </sect2> |
[73aedd1d] | 19 | |
[9652249] | 20 | <sect2 role="installation"> |
[73aedd1d] | 21 | <title>Installation of GCC</title> |
22 | ||
[3d36131c] | 23 | <para>Create a build dir:</para> |
24 | ||
[73aedd1d] | 25 | <screen><userinput>mkdir ../gcc-build |
26 | cd ../gcc-build</userinput></screen> | |
27 | ||
[d27a27b] | 28 | <para>Prepare GCC for compilation:</para> |
[73aedd1d] | 29 | |
[d72e04a] | 30 | <!--NEW--> |
[4b84428e] | 31 | <screen><userinput>CC="gcc -B/usr/bin" ../gcc-&gcc-version;/configure \ |
32 | --prefix=/tools --libexecdir=/tools/lib \ | |
33 | --with-local-prefix=/tools --disable-nls \ | |
[b3c46bf7] | 34 | --enable-shared --enable-languages=c</userinput></screen> |
[73aedd1d] | 35 | |
36 | <para>Continue with compiling the package:</para> | |
37 | ||
38 | <screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen> | |
39 | ||
[673b0d8] | 40 | <para>Now install the package:</para> |
[73aedd1d] | 41 | |
42 | <screen><userinput>make install</userinput></screen> | |
43 | ||
[3d36131c] | 44 | <para>Create a symlink:</para> |
45 | ||
[51fe215] | 46 | <screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen> |
[73aedd1d] | 47 | |
48 | </sect2> | |
[bc82645e] | 49 | |
50 | </sect1> |
Note:
See TracBrowser
for help on using the repository browser.