- Timestamp:
- 06/10/2020 08:44:16 PM (4 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, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 387a32af
- Parents:
- 67d1e79
- Location:
- chapter06
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r67d1e79 rbc8cca5 75 75 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 76 76 77 <para>Move the excutable to where it is expected to be:</para>77 <para>Move the excutable to where it is expected:</para> 78 78 79 79 <screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen> -
chapter06/coreutils.xml
r67d1e79 rbc8cca5 85 85 86 86 <screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin 87 mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin 88 mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin 89 mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 87 mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin 88 mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin 89 mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin 90 mv -v $LFS/usr/bin/chroot $LFS/usr/sbin 90 91 mkdir -pv $LFS/usr/share/man/man8 91 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 92 sed -i s/\"1\"/\"8\"/1 $LFS/usr/share/man/man8/chroot.8 93 mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin</userinput></screen> 92 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 93 sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen> 94 94 95 95 </sect2> -
chapter06/file.xml
r67d1e79 rbc8cca5 46 46 <para>Prepare File for compilation:</para> 47 47 48 <screen><userinput remap="configure">./configure --prefix=/usr \ 49 --host=$LFS_TGT</userinput></screen> 48 <screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT</userinput></screen> 50 49 51 50 <!-- devs: if using - -build here, the build system wants to compile -
chapter06/gcc-pass2.xml
r67d1e79 rbc8cca5 60 60 <screen><userinput remap="pre">case $(uname -m) in 61 61 x86_64) 62 sed -e '/m64=/s/lib64/lib/' \ 63 -i.orig gcc/config/i386/t-linux64 62 sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64 64 63 ;; 65 64 esac</userinput></screen> … … 75 74 cd build</userinput></screen> 76 75 77 <para>Create a symlink that allo s libgcc to be built with posix threads76 <para>Create a symlink that allows libgcc to be built with posix threads 78 77 support:</para> 79 78 … … 110 109 <term><parameter>-with-build-sysroot=$LFS</parameter></term> 111 110 <listitem> 112 <para>Normally, using <parameter>--host =</parameter> ensures that111 <para>Normally, using <parameter>--host</parameter> ensures that 113 112 a cross-compiler is used for building gcc, and that compiler knows 114 113 that it has to look for headers and libraries in <filename … … 139 138 <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen> 140 139 141 <para>As a finishing touch, create a symlink. Many programs and scripts140 <para>As a finishing touch, create a utility symlink. Many programs and scripts 142 141 run <command>cc</command> instead of <command>gcc</command>, which is 143 142 used to keep programs generic and therefore usable on all kinds of UNIX -
chapter06/introduction.xml
r67d1e79 rbc8cca5 14 14 the just built cross-toolchain. Those utilities are installed into 15 15 their final location, but cannot be used yet. Basic tasks still rely on 16 the host s tools. Nevertheless, the installed libraries are used when16 the host's tools. Nevertheless, the installed libraries are used when 17 17 linking.</para> 18 18 19 19 <para>Using the utilities will be possible in next chapter after entering 20 20 the <quote>chroot</quote> environment. But all the packages built in the 21 present chapter need t hemselves to be built. So we cannot be independent22 on the buildsystem yet.</para>21 present chapter need to be built before we do that. Therefore we cannot be 22 independent of the host system yet.</para> 23 23 24 24 <para>Once again, let us recall that improper setting of <envar>LFS</envar> -
chapter06/ncurses.xml
r67d1e79 rbc8cca5 52 52 53 53 <screen><userinput remap="pre">mkdir build 54 cd build55 ../configure56 make -C include57 make -C progs tic58 cd ..</userinput></screen>54 pushd build 55 ../configure 56 make -C include 57 make -C progs tic 58 popd</userinput></screen> 59 59 60 60 <para>Prepare Ncurses for compilation:</para> -
chapter06/tar.xml
r67d1e79 rbc8cca5 64 64 <title/> 65 65 66 <para>Details on this package are located in 67 <xref linkend="contents-tar" role="."/></para> 66 <para>Details on this package are located in <xref linkend="contents-tar" role="."/></para> 68 67 69 68 </sect2> -
chapter06/xz.xml
r67d1e79 rbc8cca5 62 62 <para>Make sure that all essential files are in the correct directory:</para> 63 63 64 <screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}$LFS/bin65 mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib64 <screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin 65 mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib 66 66 ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen> 67 67 … … 70 70 <sect2 role="content"> 71 71 <title/> 72 <para>Details on this package are located in<!-- TODO 73 <xref linkend="contents-xz" role="."/> --></para> 72 <para>Details on this package are located in <xref linkend="contents-xz" role="."/></para> 74 73 75 74 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.