Changeset e4b9338 for chapter05/gcc-inst.xml
- Timestamp:
- 02/03/2003 11:24:24 PM (22 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, v4_1, 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:
- ef97d16
- Parents:
- 6f531d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-inst.xml
r6f531d7 re4b9338 29 29 30 30 <itemizedlist> 31 <listitem><para><userinput>--prefix=/static :</userinput>This is NOT a31 <listitem><para><userinput>--prefix=/static</userinput>: This is NOT a 32 32 typo. GCC hard codes some paths while compiling and so we need to pass 33 33 <filename class="directory">/static</filename> as the prefix during the 34 34 configure stage. We will pass the real installation prefix (<filename 35 class="directory">$LFS/static</filename> during the installation35 class="directory">$LFS/static</filename>) during the installation 36 36 stage later on.</para></listitem> 37 37 38 <listitem><para><userinput>--disable-shared :</userinput>This prevents the38 <listitem><para><userinput>--disable-shared</userinput>: This prevents the 39 39 build of dynamic libraries. They are useless to us at the moment. We'll 40 40 create them when we reinstall GCC in chapter 6.</para></listitem> 41 41 42 42 <listitem><para><userinput>--with-as=$LFS/static/bin/as and 43 --with-ld=$LFS/static/bin/ld :</userinput>GCC can be miscompiled if your43 --with-ld=$LFS/static/bin/ld</userinput>: GCC can be miscompiled if your 44 44 host distribution's Binutils package is quite old. We need a good working 45 45 static GCC until we reinstall GCC later in chapter 6. So by using … … 56 56 57 57 <itemizedlist> 58 <listitem><para><userinput>BOOT_LDFLAGS="-static" :</userinput>This is58 <listitem><para><userinput>BOOT_LDFLAGS="-static"</userinput>: This is 59 59 GCC's equivalent to make LDFLAGS="-static" as we use with other packages to 60 60 compile them statically.</para></listitem> 61 61 62 <listitem><para><userinput>bootstrap :</userinput>The62 <listitem><para><userinput>bootstrap</userinput>: The 63 63 <emphasis>bootstrap</emphasis> target doesn't just compile GCC, but it 64 64 compiles GCC a second time. It uses the first compiled programs to compile 65 itself a second and third time to make sure the compiler compiled properly65 itself a second and third time to make sure the compiler was compiled properly 66 66 and can compile itself properly.</para></listitem> 67 67 </itemizedlist> … … 74 74 75 75 <itemizedlist> 76 <listitem><para><userinput>install-no-fixedincludes :</userinput>This prevents76 <listitem><para><userinput>install-no-fixedincludes</userinput>: This prevents 77 77 the fixincludes script from running. Preventing this is necessary because 78 78 under normal circumstances the GCC installation will run the fixincludes … … 96 96 <userinput>gcc</userinput> This is to keep programs generic and usable on 97 97 all kinds of Unix systems. Not everybody has GNU CC installed. Just running 98 cc (C Compiler) leaves the user free to decide which C compiler to install. 99 The symlink will point to the system's default compiler.</para> 98 <userinput>cc</userinput> (C Compiler) leaves the user free to decide which 99 C compiler to install. The symlink will point to the system's default 100 compiler.</para> 100 101 101 102 <para><screen><userinput>ln -s gcc $LFS/static/bin/cc</userinput></screen></para>
Note:
See TracChangeset
for help on using the changeset viewer.