lfs/chapter05/gcc-inst.xml
2001-08-25 00:13:05 +00:00

23 lines
975 B
XML

<sect2>
<title>Installation of GCC</title>
<para>Install GCC by running the following commands:</para>
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &amp;&amp;</userinput>
<userinput>mkdir ../gcc-build &amp;&amp;</userinput>
<userinput>cd ../gcc-build &amp;&amp;</userinput>
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --disable-nls \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--disable-shared &amp;&amp;</userinput>
<userinput>make BOOT_LDFLAGS=-static bootstrap &amp;&amp;</userinput>
<userinput>make prefix=$LFS/usr install &amp;&amp;</userinput>
<userinput>cd $LFS/lib &amp;&amp;</userinput>
<userinput>ln -sf ../usr/bin/cpp &amp;&amp;</userinput>
<userinput>cd $LFS/usr/lib &amp;&amp;</userinput>
<userinput>ln -sf ../bin/cpp &amp;&amp;</userinput>
<userinput>cd $LFS/usr/bin &amp;&amp;</userinput>
<userinput>ln -sf gcc cc</userinput></screen></para>
</sect2>