Ignore:
Timestamp:
05/02/2003 06:20:20 PM (21 years ago)
Author:
Gerard Beekmans <gerard@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
8727a64
Parents:
55b50e3
Message:

Integrated Pure LFS - Phase 1

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2490 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc-inst.xml

    r55b50e3 rbc82645e  
    1515found at <ulink url="&blfs-root;view/cvs/general/gcc.html"/>.</para>
    1616
     17<para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch
     18patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch</userinput></screen></para>
     19
    1720<para>It is recommended by the GCC installation documentation to build GCC
    1821in a dedicated directory outside of the source tree. Create the build
     
    2427<para>Prepare GCC to be compiled:</para>
    2528
    26 <para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
    27 &nbsp;&nbsp;&nbsp;&nbsp;--enable-threads=posix --with-slibdir=/lib \
    28 &nbsp;&nbsp;&nbsp;&nbsp;--enable-__cxa_atexit --enable-clocale=gnu</userinput></screen></para>
     29<para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \
     30&nbsp;&nbsp;&nbsp;&nbsp;../gcc-&gcc-version;/configure --prefix=/usr \
     31&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --enable-threads=posix \
     32&nbsp;&nbsp;&nbsp;&nbsp;--enable-__cxa_atexit --enable-clocale=gnu \
     33&nbsp;&nbsp;&nbsp;&nbsp;--enable-version-specific-runtime-libs \
     34&nbsp;&nbsp;&nbsp;&nbsp;--mandir=/usr/share/man \
     35&nbsp;&nbsp;&nbsp;&nbsp;--infodir=/usr/share/info</userinput></screen></para>
    2936
    3037<para>The meanings of the configure options are:</para>
     
    4956<para>Continue with compiling the package:</para>
    5057
    51 <para><screen><userinput>make bootstrap</userinput></screen></para>
     58<para><screen><userinput>make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \
     59&nbsp;&nbsp;&nbsp;&nbsp;STAGE1_CFLAGS="-pipe" bootstrap</userinput></screen></para>
    5260
    53 <para>The <emphasis>bootstrap</emphasis> target doesn't just compile GCC, but
    54 it compiles GCC multiple times. It uses the first compiled programs to
    55 compile itself a second and third time to make sure the compiler was compiled
    56 properly.</para>
     61<para><screen><userinput>make -k check</userinput></screen></para>
    5762
    5863<para>Finish installing the package:</para>
    5964
    60 <para><screen><userinput>make install-no-fixedincludes</userinput></screen></para>
     65<para><screen><userinput>make install</userinput></screen></para>
    6166
    6267<para>Some packages expect the C PreProcessor to be installed in the
     
    7378<para><screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen></para>
    7479
     80<para><screen><userinput>rm /usr/lib/libiberty.a</userinput></screen></para>
     81
    7582</sect2>
Note: See TracChangeset for help on using the changeset viewer.