mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-01 03:42:13 +00:00
b2d4656229
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2550 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
25 lines
862 B
XML
25 lines
862 B
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of GCC</title>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-specs-3.patch
|
|
patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch
|
|
patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes.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" \
|
|
../gcc-&gcc-version;/configure --prefix=/stage1 \
|
|
--with-local-prefix=/stage1 \
|
|
--enable-clocale=gnu --enable-shared \
|
|
--enable-threads=posix --enable-__cxa_atexit \
|
|
--enable-languages=c,c++
|
|
make LDFLAGS="-s"
|
|
make -k check
|
|
make install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|