2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
2001-03-10 04:28:47 +00:00
|
|
|
<title>Installation of GCC</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
<para>
|
2001-03-18 19:30:50 +00:00
|
|
|
After the gcc-2.95.2.1 archive was unpacked, the newly created
|
|
|
|
gcc-2.95.2.1 directory is not entered. The user should stay in the
|
|
|
|
$LFS/usr/src directory. GCC is installed by
|
2001-01-24 00:31:17 +00:00
|
|
|
running the following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
|
|
|
|
<userinput>mkdir $LFS/usr/src/gcc-build &&</userinput>
|
|
|
|
<userinput>cd $LFS/usr/src/gcc-build &&</userinput>
|
2001-01-26 20:57:37 +00:00
|
|
|
<userinput>../gcc-2.95.2.1/configure --prefix=/usr \</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
<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>
|
2001-03-28 15:31:12 +01:00
|
|
|
<userinput>ln -s ../usr/bin/cpp
|
2001-01-24 00:31:17 +00:00
|
|
|
&&</userinput>
|
|
|
|
<userinput>cd $LFS/usr/lib &&</userinput>
|
2001-03-28 15:31:12 +01:00
|
|
|
<userinput>ln -s ../bin/cpp
|
2001-01-24 00:31:17 +00:00
|
|
|
&&</userinput>
|
|
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
|
|
|
<userinput>ln -s gcc cc</userinput>
|
|
|
|
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|