mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-22 06:58:54 +00:00
56029fbfe4
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2759 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
25 lines
841 B
XML
25 lines
841 B
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of GCC</title>
|
|
|
|
<para>This package is known to behave badly when you have changed its
|
|
default optimization flags (including the -march and -mcpu options).
|
|
Therefore, if you have defined any environment variables that override
|
|
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
|
|
or modifying them when building GCC.</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
|
|
patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
|
|
echo timestamp > gcc/cstamp-h.in
|
|
mkdir ../gcc-2-build
|
|
cd ../gcc-2-build
|
|
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
|
|
--enable-shared --enable-languages=c \
|
|
--enable-threads=posix
|
|
make bootstrap
|
|
make install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|