mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 14:24:48 +00:00
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@688 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
30 lines
963 B
XML
30 lines
963 B
XML
<sect2>
|
|
<title>Installation of GCC</title>
|
|
|
|
<para>
|
|
Install GCC by running the following commands:
|
|
</para>
|
|
|
|
<blockquote><literallayout>
|
|
<userinput>mkdir $LFS/usr/src/gcc-build &&</userinput>
|
|
<userinput>cd $LFS/usr/src/gcc-build &&</userinput>
|
|
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
|
|
<userinput> --enable-languages=c,c++ --disable-nls
|
|
\</userinput>
|
|
<userinput> --disable-shared
|
|
&&</userinput>
|
|
<userinput>make -e LDFLAGS=-static bootstrap &&</userinput>
|
|
<userinput>make prefix=$LFS/usr install &&</userinput>
|
|
<userinput>cd $LFS/lib &&</userinput>
|
|
<userinput>ln -s ../usr/bin/cpp
|
|
&&</userinput>
|
|
<userinput>cd $LFS/usr/lib &&</userinput>
|
|
<userinput>ln -s ../bin/cpp
|
|
&&</userinput>
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
|
<userinput>ln -s gcc cc</userinput>
|
|
</literallayout></blockquote>
|
|
|
|
</sect2>
|
|
|