gcc-inst.xml 1022 B

1234567891011121314151617181920212223
  1. <sect2>
  2. <title>Installation of GCC</title>
  3. <para>Install GCC by running the following commands. These commands will build
  4. the C and C++ compiler. Other compilers are available within the gcc
  5. package. If you want to build all the other availble compilers too,
  6. leave out the --enable-languages=c,c++ option in the configure command.
  7. See the GCC documentation for more details on which additional compilers
  8. are available.</para>
  9. <para>Note: the build of other compilers is not tested by the people
  10. who actively work on LFS.</para>
  11. <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &amp;&amp;</userinput>
  12. <userinput>mkdir ../gcc-build &amp;&amp;</userinput>
  13. <userinput>cd ../gcc-build &amp;&amp;</userinput>
  14. <userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \</userinput>
  15. <userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads &amp;&amp;</userinput>
  16. <userinput>make bootstrap &amp;&amp;</userinput>
  17. <userinput>make install</userinput></screen></para>
  18. </sect2>