mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
72d67c996e
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@425 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<sect2>
|
|
<title>Installation of GCC</title>
|
|
|
|
<para>
|
|
GCC is installed 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-2.95.2.1/configure --prefix=/usr \</userinput>
|
|
<userinput> --with-gxx-include-dir=/usr/include/g++
|
|
\</userinput>
|
|
<userinput> --enable-languages=c,c++ --disable-nls
|
|
&&</userinput>
|
|
<userinput>make -e LDFLAGS=-static bootstrap &&</userinput>
|
|
<userinput>make prefix=$LFS/usr local_prefix=$LFS/usr/local
|
|
\</userinput>
|
|
<userinput> gxx_include_dir=$LFS/usr/include/g++
|
|
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>
|
|
|