mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 05:57:43 +00:00
8727a64b3c
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2491 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<sect2><title> </title><para> </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" \
|
|
../gcc-&gcc-version;/configure --prefix=/stage1 \
|
|
--with-local-prefix=/stage1 \
|
|
--enable-languages=c,c++ --enable-shared \
|
|
--enable-threads=posix --enable-__cxa_atexit \
|
|
--enable-version-specific-runtime-libs
|
|
make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
|
|
STAGE1_CFLAGS="-pipe" bootstrap
|
|
make -k check
|
|
make install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|