mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-01 11:52:31 +00:00
84479a6efd
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@685 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
28 lines
900 B
XML
28 lines
900 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>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>
|
|
|