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
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install GCC by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-08-19 14:24:02 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &&</userinput>
|
2001-07-11 20:33:02 +01:00
|
|
|
<userinput>mkdir ../gcc-build &&</userinput>
|
|
|
|
<userinput>cd ../gcc-build &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
|
|
|
|
<userinput> --enable-languages=c,c++ --disable-nls \</userinput>
|
|
|
|
<userinput> --disable-shared &&</userinput>
|
2001-08-25 01:13:05 +01:00
|
|
|
<userinput>make BOOT_LDFLAGS=-static bootstrap &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>make prefix=$LFS/usr install &&</userinput>
|
|
|
|
<userinput>cd $LFS/lib &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../usr/bin/cpp &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>cd $LFS/usr/lib &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../bin/cpp &&</userinput>
|
2001-07-06 16:25:48 +01:00
|
|
|
<userinput>cd $LFS/usr/bin &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf gcc cc</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|