aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/gcc-inst.xml')
-rw-r--r--chapter05/gcc-inst.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index e27dd0e95..ad9f79f51 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -17,15 +17,13 @@ been warned.</para>
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-patch-version;.patch &amp;&amp;
mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp;
-../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \
+../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c,c++ \
&nbsp;&nbsp;&nbsp;--disable-nls --disable-shared --enable-threads=posix &amp;&amp;
make BOOT_LDFLAGS=-static bootstrap &amp;&amp;
-make prefix=$LFS/usr install &amp;&amp;
-ln -sf ../usr/bin/cpp $LFS/lib &amp;&amp;
-ln -sf ../bin/cpp $LFS/usr/lib &amp;&amp;
-ln -sf gcc $LFS/usr/bin/cc &amp;&amp;
-rmdir $LFS/usr/*-gnu/include &amp;&amp;
-rmdir $LFS/usr/*-gnu</userinput></screen></para>
+make prefix=$LFS/static install &amp;&amp;
+ln -s gcc $LFS/static/bin/cc &amp;&amp;
+rmdir $LFS/static/*-gnu/include &amp;&amp;
+rmdir $LFS/static/*-gnu</userinput></screen></para>
</sect2>