lfs/chapter05/gcc-pass2-inst.xml
Gerard Beekmans 69bd5114ea No bootstrap
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2510 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2003-05-05 18:40:47 +00:00

27 lines
1006 B
XML

<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
<sect2>
<title>Installation of GCC</title>
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-specs.patch
patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch
patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch
patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch
patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch </userinput></screen></para>
<para><screen><userinput>mkdir ../gcc-build
cd ../gcc-build</userinput></screen></para>
<para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
&nbsp;&nbsp;&nbsp;&nbsp;../gcc-&gcc-version;/configure --prefix=/stage1 \
&nbsp;&nbsp;&nbsp;&nbsp;--with-local-prefix=/stage1 \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-clocale=gnu --enable-shared \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix --enable-__cxa_atexit
make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
&nbsp;&nbsp;&nbsp;&nbsp;STAGE1_CFLAGS="-pipe"
make -k check
make install</userinput></screen></para>
</sect2>