2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of GCC</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install GCC by running the following commands. These commands will build
|
2001-06-28 00:13:21 +01:00
|
|
|
the C and C++ compiler. Other compilers are available within the gcc
|
|
|
|
package. If you want to build all the other availble compilers too,
|
|
|
|
leave out the --enable-languages=c,c++ option in the configure command.
|
|
|
|
See the GCC documentation for more details on which additional compilers
|
2001-07-22 20:45:10 +01:00
|
|
|
are available.</para>
|
2001-06-28 00:13:21 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Note: the build of other compilers is not tested by the people
|
|
|
|
who actively work on LFS.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-19 14:24:02 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&</userinput>
|
2001-08-07 02:07:09 +01:00
|
|
|
<userinput>mkdir ../gcc-build &&</userinput>
|
2001-07-11 20:34:09 +01:00
|
|
|
<userinput>cd ../gcc-build &&</userinput>
|
2001-08-28 21:29:48 +01:00
|
|
|
<userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \</userinput>
|
|
|
|
<userinput> --enable-languages=c,c++ --enable-threads &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make bootstrap &&</userinput>
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>make install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|