- 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
- Location:
- chapter05
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-inst.xml
r6f531d7 re4b9338 30 30 31 31 <itemizedlist> 32 <listitem><para><userinput>--enable-static-link :</userinput>This option32 <listitem><para><userinput>--enable-static-link</userinput>: This option 33 33 causes the <userinput>bash</userinput> program to be statically 34 34 linked.</para></listitem> 35 35 36 <listitem><para><userinput>--prefix=$LFS/static:</userinput> This option 37 installs all of Bash's files under the $LFS/static directory, which becomes 38 the /static directory when chroot'ed or reboot'ed into 39 LFS.</para></listitem> 36 <listitem><para><userinput>--prefix=$LFS/static</userinput>: This option 37 installs all of Bash's files under the 38 <filename class="directory">$LFS/static</filename> directory, which becomes 39 the <filename class="directory">/static</filename> directory when chroot'ed 40 or reboot'ed into LFS.</para></listitem> 40 41 41 <listitem><para><userinput>--with-curses :</userinput>This option causes42 bash to be linked against the curses library instead of the default termcap 43 library which is being phased out andhas become obsolete. Note, on most42 <listitem><para><userinput>--with-curses</userinput>: This option causes 43 <filename>bash</filename> to be linked against the curses library instead 44 of the default termcap library which has become obsolete. Note, on most 44 45 all Linux systems, the curses library is provided by the Ncurses 45 46 package (so in truth we link against the ncurses library).</para> -
chapter05/binutils-inst.xml
r6f531d7 re4b9338 23 23 24 24 <itemizedlist> 25 <listitem><para><userinput>--disable-nls :</userinput>This option disables25 <listitem><para><userinput>--disable-nls</userinput>: This option disables 26 26 internationalization (also known as i18n). We don't need this for our 27 27 static programs and nls often causes problems when you're linking … … 36 36 37 37 <itemizedlist> 38 <listitem><para><userinput> make LDFLAGS="-all-static":</userinput>This is38 <listitem><para><userinput>LDFLAGS="-all-static"</userinput>: This is 39 39 how we tell Binutils that all programs should be statically linked. Setting 40 40 the <emphasis>LDFLAGS</emphasis> variable is the common way of specifying we -
chapter05/bzip2-inst.xml
r6f531d7 re4b9338 14 14 15 15 <itemizedlist> 16 <listitem><para><userinput>CC="gcc -static -s" :</userinput>The Bzip2 package16 <listitem><para><userinput>CC="gcc -static -s"</userinput>: The Bzip2 package 17 17 does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set 18 18 the <emphasis>CC</emphasis> variable which defines which compiler to use. … … 28 28 29 29 <itemizedlist> 30 <listitem><para><userinput>PREFIX=$LFS/static :</userinput>Instead of30 <listitem><para><userinput>PREFIX=$LFS/static</userinput>: Instead of 31 31 passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script, 32 32 we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal -
chapter05/diffutils-inst.xml
r6f531d7 re4b9338 12 12 13 13 <itemizedlist> 14 <listitem><para><userinput>LDFLAGS="-static" :</userinput>This is the most14 <listitem><para><userinput>LDFLAGS="-static"</userinput>: This is the most 15 15 common way to tell a package that all programs should be statically linked. 16 16 This way the <emphasis>LDFLAGS</emphasis> environment variable is set, but … … 21 21 variable locally.</para></listitem> 22 22 23 <listitem><para><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2:</userinput> 24 The <emphasis>CPPFLAGS</emphasis> variable is a variable that's read by the 25 cpp program (C PreProcessor). The value of this variable tells the 23 <listitem><para><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2</userinput>: The <emphasis>CPPFLAGS</emphasis> variable is a variable that's read by 24 the cpp program (C PreProcessor). The value of this variable tells the 26 25 preprocessor to replace every instance of <emphasis>re_max_failures</emphasis> 27 26 it finds with <emphasis>re_max_failures2</emphasis> before handing the source -
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> -
chapter05/grep-inst.xml
r6f531d7 re4b9338 13 13 14 14 <itemizedlist> 15 <listitem><para><userinput>--disable-perl-regexp:</userinput> This 16 configure option makes sure Grep is not linked against the PCRE library, 17 which is often only available as a shared library in distributions. Not 18 using this option might result in a compilation error.</para></listitem> 15 <listitem><para><userinput>--disable-perl-regexp</userinput>: This 16 configure option makes sure <filename>grep</filename> is not linked against 17 the PCRE library, which is often only available as a shared library in 18 distributions. Not using this option might result in a compilation 19 error.</para></listitem> 19 20 </itemizedlist> 20 21 -
chapter05/make-inst.xml
r6f531d7 re4b9338 23 23 privileges to complete the installation of /mnt/lfs/static/bin/make.</screen></blockquote> 24 24 25 <para>You can safely ignore this warning. The make program doesn't actually 26 need to be owned by group kmem and setgid for the <emphasis>-l</emphasis> 27 option to work. (This option tells make not to start any new jobs when a 28 certain load on the system has been reached.)</para> 25 <para>You can safely ignore this warning. The <userinput>make</userinput> 26 program doesn't actually need to be owned by group kmem and setgid for the 27 <emphasis>-l</emphasis> option to work. (This option tells 28 <userinput>make</userinput> not to start any new jobs when a certain load 29 on the system has been reached.)</para> 29 30 30 31 </sect2> -
chapter05/patch-inst.xml
r6f531d7 re4b9338 12 12 13 13 <itemizedlist> 14 <listitem><para><userinput>CPPFLAGS=-D_GNU_SOURCE :</userinput>This flag14 <listitem><para><userinput>CPPFLAGS=-D_GNU_SOURCE</userinput>: This flag 15 15 fixes installation problems of this package on PPC and m68k platforms (that 16 16 we know of). It doesn't hurt compilation on other platforms, such as x86, -
chapter05/setting-environment.xml
r6f531d7 re4b9338 22 22 your LFS installation.</para> 23 23 24 <para>The LFS variable has been explained in previous chapters. LC_ALL is25 a variable used for internationalization.</para>24 <para>The LFS variable should of course be set to the mount point you 25 chose.</para> 26 26 27 27 <para>The LC_ALL variable controls the localization of certain programs, -
chapter05/shellutils-inst.xml
r6f531d7 re4b9338 30 30 31 31 <para>You can safely ignore that warning. You need to be logged in as root 32 in order to install su the way Sh-utils wants to install it, which is being 33 suid root. Because we don't need su during Chapter 6, and su will be properly 34 installed when we re-install Sh-utils in Chapter 6.</para> 32 in order to install <filename>su</filename> the way Sh-utils wants to install 33 it, which is suid root. Because we don't need <filename>su</filename> during 34 Chapter 6, and <filename>su</filename> will be properly installed when we 35 re-install Sh-utils in Chapter 6.</para> 35 36 36 37 </sect2> -
chapter05/utillinux-inst.xml
r6f531d7 re4b9338 12 12 <para><screen><userinput>make -C lib</userinput></screen></para> 13 13 14 <para>We only need the < emphasis>mount</emphasis> and15 < emphasis>umount</emphasis> programs at the moment, so we won't be14 <para>We only need the <filename>mount</filename> and 15 <filename>umount</filename> programs at the moment, so we won't be 16 16 compiling the entire package. Compile these two programs by issuing 17 17 the following command:</para>
Note:
See TracChangeset
for help on using the changeset viewer.