- Timestamp:
- 09/28/2002 09:08:29 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_0, 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:
- 4d46e012
- Parents:
- f5cc1c17
- Location:
- chapter05
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-inst.xml
rf5cc1c17 r2c094d6 4 4 <para>This package is known to behave badly when you have changed its default 5 5 optimization flags (including the -march and -mcpu options). Binutils is 6 best left alone. 6 best left alone. Therefore, if you have defined any environment variables 7 7 that override default optimizations, such as CFLAGS and CXXFLAGS, we 8 recommend unsetting or modifying them when building binutils. 8 recommend unsetting or modifying them when building binutils. You have been 9 9 warned.</para> 10 10 -
chapter05/gcc-exp.xml
rf5cc1c17 r2c094d6 7 7 <ulink url="http://www.zipworld.com.au/~gschafer/lfs-tweaks.html"/>.</para> 8 8 9 <para><userinput>--prefix=/static:</userinput> This is NOT a typo. 9 <para><userinput>--prefix=/static:</userinput> This is NOT a typo. GCC hard 10 10 codes some paths while compiling and so we need to pass /static as the 11 prefix during ./configure. 11 prefix during ./configure. We pass the real install prefix during the 12 12 make install command later.</para> 13 13 -
chapter05/gcc-inst.xml
rf5cc1c17 r2c094d6 8 8 <para>This package is known to behave badly when you have changed its 9 9 default optimization flags (including the -march and -mcpu options). GCC is 10 best left alone. 10 best left alone. Therefore, if you have defined any environment variables 11 11 that override default optimizations, such as CFLAGS and CXXFLAGS, we 12 recommend unsetting or modifying them when building GCC. 12 recommend unsetting or modifying them when building GCC. You have 13 13 been warned.</para> 14 14 -
chapter05/patch-exp.xml
rf5cc1c17 r2c094d6 4 4 <para><userinput>CPPFLAGS=-D_GNU_SOURCE: </userinput> 5 5 This flag fixes installation problems of this package on PPC and m68k 6 platforms (that we know of). 6 platforms (that we know of). It doesn't hurt compilation on other 7 7 platforms, such as x86, so we do it by default.</para> 8 8 -
chapter05/whystatic.xml
rf5cc1c17 r2c094d6 30 30 that we only need one copy of the library. If <filename>ls</filename> and 31 31 <filename>rm</filename> both use the same library, then we don't need two 32 copies of the library, as they can both get the code from the same file. 32 copies of the library, as they can both get the code from the same file. 33 33 Even when in memory, the two programs share the same code, rather than loading 34 34 duplicates into memory. So not only are we saving hard disk space, but also … … 36 36 37 37 <para>If dynamic linking saves so much room, then why are we making everything 38 statically linked? 38 statically linked? Well, that's because when you chroot into your brand new 39 39 (but very incomplete) LFS environment, these dynamic libraries won't be 40 40 available because they are somewhere else in your old directory tree … … 53 53 54 54 <para>And there you have it, that's why you need to use those weird 55 <userinput>-static</userinput> flags. 55 <userinput>-static</userinput> flags. If you try building everything 56 56 without them, you'll see very quickly what 57 57 happens when you chroot into your newly crippled LFS system.</para>
Note:
See TracChangeset
for help on using the changeset viewer.