Changeset bc82645e for chapter06/gcc-inst.xml
- Timestamp:
- 05/02/2003 06:20:20 PM (21 years ago)
- 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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 8727a64
- Parents:
- 55b50e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc-inst.xml
r55b50e3 rbc82645e 15 15 found at <ulink url="&blfs-root;view/cvs/general/gcc.html"/>.</para> 16 16 17 <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixedincludes.patch 18 patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch</userinput></screen></para> 19 17 20 <para>It is recommended by the GCC installation documentation to build GCC 18 21 in a dedicated directory outside of the source tree. Create the build … … 24 27 <para>Prepare GCC to be compiled:</para> 25 28 26 <para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \ 27 --enable-threads=posix --with-slibdir=/lib \ 28 --enable-__cxa_atexit --enable-clocale=gnu</userinput></screen></para> 29 <para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \ 30 ../gcc-&gcc-version;/configure --prefix=/usr \ 31 --enable-shared --enable-threads=posix \ 32 --enable-__cxa_atexit --enable-clocale=gnu \ 33 --enable-version-specific-runtime-libs \ 34 --mandir=/usr/share/man \ 35 --infodir=/usr/share/info</userinput></screen></para> 29 36 30 37 <para>The meanings of the configure options are:</para> … … 49 56 <para>Continue with compiling the package:</para> 50 57 51 <para><screen><userinput>make bootstrap</userinput></screen></para> 58 <para><screen><userinput>make BOOT_LDFLAGS="-s" BOOT_CFLAGS="-O2 -pipe" \ 59 STAGE1_CFLAGS="-pipe" bootstrap</userinput></screen></para> 52 60 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> 57 62 58 63 <para>Finish installing the package:</para> 59 64 60 <para><screen><userinput>make install -no-fixedincludes</userinput></screen></para>65 <para><screen><userinput>make install</userinput></screen></para> 61 66 62 67 <para>Some packages expect the C PreProcessor to be installed in the … … 73 78 <para><screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen></para> 74 79 80 <para><screen><userinput>rm /usr/lib/libiberty.a</userinput></screen></para> 81 75 82 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.