- Timestamp:
- 05/10/2003 11:48:26 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:
- e91d8ce
- Parents:
- a5b2aa9
- Location:
- chapter05
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/bash-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Bash</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage1 \6 <para><screen><userinput>./configure --prefix=/stage1 \ 7 7 --with-curses --without-bash-malloc 8 make LDFLAGS="-s"8 make 9 9 make tests 10 10 make install -
chapter05/binutils-pass1-inst.xml
ra5b2aa9 r84a7dc2 18 18 <para>Next, prepare Binutils to be compiled:</para> 19 19 20 <para><screen><userinput>CFLAGS="-O2 -pipe" \ 21 ../binutils-&binutils-version;/configure \ 20 <para><screen><userinput>../binutils-&binutils-version;/configure \ 22 21 --prefix=/stage1 --disable-nls</userinput></screen></para> 23 22 … … 33 32 <para>Continue with compiling the package:</para> 34 33 35 <para><screen><userinput>make tooldir=/stage1 LDFLAGS="-all-static -s"</userinput></screen></para>34 <para><screen><userinput>make tooldir=/stage1 LDFLAGS="-all-static"</userinput></screen></para> 36 35 37 36 <para>The meaning of the make option is:</para> -
chapter05/binutils-pass2-inst.xml
ra5b2aa9 r84a7dc2 7 7 mkdir ../binutils-build 8 8 cd ../binutils-build 9 CFLAGS="-O2 -pipe"../binutils-&binutils-version;/configure --prefix=/stage1 \9 ../binutils-&binutils-version;/configure --prefix=/stage1 \ 10 10 --enable-shared --with-lib-path=/stage1/lib 11 make tooldir=/stage1 LDFLAGS="-s"11 make tooldir=/stage1 12 12 make tooldir=/stage1 check 13 13 make tooldir=/stage1 install</userinput></screen></para> -
chapter05/bzip2-inst.xml
ra5b2aa9 r84a7dc2 10 10 11 11 <para><screen><userinput>make -f Makefile-libbz2_so 12 make LDFLAGS="-s"12 make 13 13 make check 14 14 make PREFIX=/stage1 install -
chapter05/coreutils-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Coreutils</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage17 make LDFLAGS="-s"6 <para><screen><userinput>./configure --prefix=/stage1 7 make 8 8 make check-root 9 9 make install</userinput></screen></para> -
chapter05/dejagnu-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of DejaGNU</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage16 <para><screen><userinput>./configure --prefix=/stage1 7 7 make install</userinput></screen></para> 8 8 -
chapter05/diffutils-inst.xml
ra5b2aa9 r84a7dc2 6 6 <para>Prepare Diffutils to be compiled:</para> 7 7 8 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage19 make LDFLAGS="-s"8 <para><screen><userinput>./configure --prefix=/stage1 9 make 10 10 make install</userinput></screen></para> 11 11 -
chapter05/expect-inst.xml
ra5b2aa9 r84a7dc2 5 5 6 6 <para><screen><userinput>patch -Np1 -i ../expect-&expect-version;.patch 7 CFLAGS="-O2 -pipe"./configure --prefix=/stage1 --with-tcl=/stage1/lib \7 ./configure --prefix=/stage1 --with-tcl=/stage1/lib \ 8 8 --with-x=no --disable-symbols --cache-file=/dev/null 9 make LDFLAGS="-s"9 make 10 10 make test 11 11 make install</userinput></screen></para> -
chapter05/findutils-inst.xml
ra5b2aa9 r84a7dc2 30 30 <para>Prepare Findutils to be compiled:</para> 31 31 32 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage133 make LDFLAGS="-s"32 <para><screen><userinput>./configure --prefix=/stage1 33 make 34 34 make check 35 35 make install</userinput></screen></para> -
chapter05/gawk-inst.xml
ra5b2aa9 r84a7dc2 6 6 <para>Prepare Gawk to be compiled:</para> 7 7 8 <para><screen><userinput>CFLAGS="-O2 -pipe" \ 9 ./configure --prefix=/stage1</userinput></screen></para> 8 <para><screen><userinput>./configure --prefix=/stage1</userinput></screen></para> 10 9 11 10 <para>Continue with compiling the package:</para> 12 11 13 <para><screen><userinput>make LDFLAGS="-s"</userinput></screen></para>12 <para><screen><userinput>make</userinput></screen></para> 14 13 15 14 <para>And finish off installing the package:</para> -
chapter05/gcc-pass1-inst.xml
ra5b2aa9 r84a7dc2 24 24 <para>Prepare GCC to be compiled:</para> 25 25 26 <para><screen><userinput>CFLAGS="-O2 -pipe" \ 27 ../gcc-&gcc-version;/configure --prefix=/stage1 \ 26 <para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/stage1 \ 28 27 --with-local-prefix=/stage1 \ 29 28 --disable-nls --enable-shared \ … … 55 54 <para>Continue with compiling the package:</para> 56 55 57 <para><screen><userinput>make BOOT_LDFLAGS="-static -s" \ 58 BOOT_CFLAGS="-O2 -pipe" \ 59 STAGE1_CFLAGS="-pipe" bootstrap</userinput></screen></para> 56 <para><screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen></para> 60 57 61 58 <para>The meaning of the make options are:</para> -
chapter05/gcc-pass2-inst.xml
ra5b2aa9 r84a7dc2 11 11 cd ../gcc-build</userinput></screen></para> 12 12 13 <para><screen><userinput>CFLAGS="-O2 -pipe" CXXFLAGS="-O2 -pipe" \ 14 ../gcc-&gcc-version;/configure --prefix=/stage1 \ 13 <para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/stage1 \ 15 14 --with-local-prefix=/stage1 \ 16 15 --enable-clocale=gnu --enable-shared \ 17 16 --enable-threads=posix --enable-__cxa_atexit \ 18 17 --enable-languages=c,c++ 19 make LDFLAGS="-s"18 make 20 19 make -k check 21 20 make install</userinput></screen></para> -
chapter05/gettext-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Gettext</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage1 &&7 make LDFLAGS="-s"&&6 <para><screen><userinput>./configure --prefix=/stage1 && 7 make && 8 8 make check 9 9 make install</userinput></screen></para> -
chapter05/glibc-inst.xml
ra5b2aa9 r84a7dc2 26 26 <para>Next, prepare Glibc to be compiled:</para> 27 27 28 <para><screen><userinput>CFLAGS="-O2 -pipe" \ 29 ../glibc-&glibc-version;/configure --prefix=/stage1 \ 28 <para><screen><userinput>../glibc-&glibc-version;/configure --prefix=/stage1 \ 30 29 --disable-profile --enable-add-ons \ 31 30 --with-headers=/stage1/include \ -
chapter05/grep-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Grep</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage1 \6 <para><screen><userinput>./configure --prefix=/stage1 \ 7 7 --disable-perl-regexp --with-included-regex 8 make LDFLAGS="-s"8 make 9 9 make check 10 10 make install</userinput></screen></para> -
chapter05/gzip-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Gzip</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage17 make LDFLAGS="-s"6 <para><screen><userinput>./configure --prefix=/stage1 7 make 8 8 make check 9 9 make install -
chapter05/make-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Make</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage17 make LDFLAGS="-s"6 <para><screen><userinput>./configure --prefix=/stage1 7 make 8 8 make check 9 9 make install</userinput></screen></para> -
chapter05/patch-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Patch</title> 5 5 6 <para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE CFLAGS="-O2 -pipe" \ 7 ./configure --prefix=/stage1 8 make LDFLAGS="-s" 6 <para><screen><userinput>./configure --prefix=/stage1 7 make 9 8 make install</userinput></screen></para> 10 9 -
chapter05/perl-inst.xml
ra5b2aa9 r84a7dc2 4 4 5 5 <para><screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc.patch 6 ./configure.gnu --prefix=/stage1 -Doptimize='-O2 -pipe'&&6 ./configure.gnu --prefix=/stage1 && 7 7 make perl 8 8 make utilities && -
chapter05/sed-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Sed</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage17 make LDFLAGS="-s"6 <para><screen><userinput>./configure --prefix=/stage1 7 make 8 8 make check 9 9 make install</userinput></screen></para> -
chapter05/setting-environment.xml
ra5b2aa9 r84a7dc2 11 11 LFS=/mnt/lfs 12 12 LC_ALL=POSIX 13 LDFLAGS="-s"14 13 PATH=/stage1/bin:$PATH 15 14 export LFS LC_ALL LDFLAGS PATH -
chapter05/tar-inst.xml
ra5b2aa9 r84a7dc2 13 13 <para><screen><userinput>patch -Np1 -i ../tar-&tar-patch-version;.patch</userinput></screen></para> 14 14 15 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage116 make LDFLAGS="-s"15 <para><screen><userinput>./configure --prefix=/stage1 16 make 17 17 make check 18 18 make install</userinput></screen></para> -
chapter05/tcl-inst.xml
ra5b2aa9 r84a7dc2 5 5 6 6 <para><screen><userinput>cd unix 7 CFLAGS="-O2 -pipe"./configure --prefix=/stage18 make LDFLAGS="-s"7 ./configure --prefix=/stage1 8 make 9 9 make test 10 10 make install -
chapter05/texinfo-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Texinfo</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure --prefix=/stage17 make LDFLAGS="-s"6 <para><screen><userinput>./configure --prefix=/stage1 7 make 8 8 make check 9 9 make install -
chapter05/utillinux-inst.xml
ra5b2aa9 r84a7dc2 4 4 <title>Installation of Util-linux</title> 5 5 6 <para><screen><userinput> CFLAGS="-O2 -pipe"./configure7 make -C lib LDFLAGS="-s"8 make -C mount LDFLAGS="-s"mount umount9 make -C text-utils LDFLAGS="-s"more6 <para><screen><userinput>./configure 7 make -C lib 8 make -C mount mount umount 9 make -C text-utils more 10 10 cp mount/{mount,umount} /stage1/bin 11 11 cp text-utils/more /stage1/bin</userinput></screen></para>
Note:
See TracChangeset
for help on using the changeset viewer.