aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gcc-inst.xml')
-rw-r--r--chapter06/gcc-inst.xml10
1 files changed, 4 insertions, 6 deletions
diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml
index 33eaee7f7..35eab2365 100644
--- a/chapter06/gcc-inst.xml
+++ b/chapter06/gcc-inst.xml
@@ -22,18 +22,16 @@ are available.</para>
<para>Note: the build of other compilers is not tested by the people
who actively work on LFS.</para>
-<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &amp;&amp;
-mkdir ../gcc-build &amp;&amp;
+<para><screen><userinput>mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp;
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
-&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads=posix &amp;&amp;
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads=posix \
+&nbsp;&nbsp;&nbsp;&nbsp;--with-slibdir=/lib &amp;&amp;
make bootstrap &amp;&amp;
make install &amp;&amp;
ln -sf ../usr/bin/cpp /lib &amp;&amp;
ln -sf ../bin/cpp /usr/lib &amp;&amp;
-ln -sf gcc /usr/bin/cc &amp;&amp;
-rmdir /usr/*-gnu/include &amp;&amp;
-rmdir /usr/*-gnu</userinput></screen></para>
+ln -sf gcc /usr/bin/cc</userinput></screen></para>
</sect2>