mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Text updates to cross2 branch Chapter 6
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11917 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
67d1e797c3
commit
bc8cca581f
@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
||||||
|
|
||||||
<para>Move the excutable to where it is expected to be:</para>
|
<para>Move the excutable to where it is expected:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>
|
<screen><userinput remap="install">mv $LFS/usr/bin/bash $LFS/bin/bash</userinput></screen>
|
||||||
|
|
||||||
|
@ -84,13 +84,13 @@
|
|||||||
programs harcode executable locations:</para>
|
programs harcode executable locations:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
|
<screen><userinput remap="install">mv -v $LFS/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $LFS/bin
|
||||||
mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin
|
mv -v $LFS/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} $LFS/bin
|
||||||
mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin
|
mv -v $LFS/usr/bin/{rmdir,stty,sync,true,uname} $LFS/bin
|
||||||
mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
|
mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin
|
||||||
|
mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
|
||||||
mkdir -pv $LFS/usr/share/man/man8
|
mkdir -pv $LFS/usr/share/man/man8
|
||||||
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
|
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
|
||||||
sed -i s/\"1\"/\"8\"/1 $LFS/usr/share/man/man8/chroot.8
|
sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen>
|
||||||
mv -v $LFS/usr/bin/{head,nice,sleep,touch} $LFS/bin</userinput></screen>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -45,8 +45,7 @@
|
|||||||
|
|
||||||
<para>Prepare File for compilation:</para>
|
<para>Prepare File for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">./configure --prefix=/usr \
|
<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT</userinput></screen>
|
||||||
--host=$LFS_TGT</userinput></screen>
|
|
||||||
|
|
||||||
<!-- devs: if using - -build here, the build system wants to compile
|
<!-- devs: if using - -build here, the build system wants to compile
|
||||||
the signature file with "file" on the build system, but stops if it is not
|
the signature file with "file" on the build system, but stops if it is not
|
||||||
|
@ -59,8 +59,7 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
|
|||||||
|
|
||||||
<screen><userinput remap="pre">case $(uname -m) in
|
<screen><userinput remap="pre">case $(uname -m) in
|
||||||
x86_64)
|
x86_64)
|
||||||
sed -e '/m64=/s/lib64/lib/' \
|
sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
||||||
-i.orig gcc/config/i386/t-linux64
|
|
||||||
;;
|
;;
|
||||||
esac</userinput></screen>
|
esac</userinput></screen>
|
||||||
|
|
||||||
@ -74,7 +73,7 @@ esac</userinput></screen>
|
|||||||
<screen><userinput remap="pre">mkdir -v build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Create a symlink that allos libgcc to be built with posix threads
|
<para>Create a symlink that allows libgcc to be built with posix threads
|
||||||
support:</para>
|
support:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -pv $LFS_TGT/libgcc
|
<screen><userinput remap="pre">mkdir -pv $LFS_TGT/libgcc
|
||||||
@ -109,7 +108,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></s
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>-with-build-sysroot=$LFS</parameter></term>
|
<term><parameter>-with-build-sysroot=$LFS</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Normally, using <parameter>--host=</parameter> ensures that
|
<para>Normally, using <parameter>--host</parameter> ensures that
|
||||||
a cross-compiler is used for building gcc, and that compiler knows
|
a cross-compiler is used for building gcc, and that compiler knows
|
||||||
that it has to look for headers and libraries in <filename
|
that it has to look for headers and libraries in <filename
|
||||||
class="directory">$LFS</filename>. But the build system of GCC uses
|
class="directory">$LFS</filename>. But the build system of GCC uses
|
||||||
@ -138,7 +137,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h</userinput></s
|
|||||||
|
|
||||||
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
||||||
|
|
||||||
<para>As a finishing touch, create a symlink. Many programs and scripts
|
<para>As a finishing touch, create a utility symlink. Many programs and scripts
|
||||||
run <command>cc</command> instead of <command>gcc</command>, which is
|
run <command>cc</command> instead of <command>gcc</command>, which is
|
||||||
used to keep programs generic and therefore usable on all kinds of UNIX
|
used to keep programs generic and therefore usable on all kinds of UNIX
|
||||||
systems where the GNU C compiler is not always installed. Running
|
systems where the GNU C compiler is not always installed. Running
|
||||||
|
@ -13,13 +13,13 @@
|
|||||||
<para>This chapter shows how to cross-compile basic utilities using
|
<para>This chapter shows how to cross-compile basic utilities using
|
||||||
the just built cross-toolchain. Those utilities are installed into
|
the just built cross-toolchain. Those utilities are installed into
|
||||||
their final location, but cannot be used yet. Basic tasks still rely on
|
their final location, but cannot be used yet. Basic tasks still rely on
|
||||||
the hosts tools. Nevertheless, the installed libraries are used when
|
the host's tools. Nevertheless, the installed libraries are used when
|
||||||
linking.</para>
|
linking.</para>
|
||||||
|
|
||||||
<para>Using the utilities will be possible in next chapter after entering
|
<para>Using the utilities will be possible in next chapter after entering
|
||||||
the <quote>chroot</quote> environment. But all the packages built in the
|
the <quote>chroot</quote> environment. But all the packages built in the
|
||||||
present chapter need themselves to be built. So we cannot be independent
|
present chapter need to be built before we do that. Therefore we cannot be
|
||||||
on the build system yet.</para>
|
independent of the host system yet.</para>
|
||||||
|
|
||||||
<para>Once again, let us recall that improper setting of <envar>LFS</envar>
|
<para>Once again, let us recall that improper setting of <envar>LFS</envar>
|
||||||
together with building as root, may render your computer unusable.
|
together with building as root, may render your computer unusable.
|
||||||
|
@ -51,11 +51,11 @@
|
|||||||
program on the build host:</para>
|
program on the build host:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir build
|
<screen><userinput remap="pre">mkdir build
|
||||||
cd build
|
pushd build
|
||||||
../configure
|
../configure
|
||||||
make -C include
|
make -C include
|
||||||
make -C progs tic
|
make -C progs tic
|
||||||
cd ..</userinput></screen>
|
popd</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Ncurses for compilation:</para>
|
<para>Prepare Ncurses for compilation:</para>
|
||||||
|
|
||||||
|
@ -63,8 +63,7 @@
|
|||||||
<sect2 role="content">
|
<sect2 role="content">
|
||||||
<title/>
|
<title/>
|
||||||
|
|
||||||
<para>Details on this package are located in
|
<para>Details on this package are located in <xref linkend="contents-tar" role="."/></para>
|
||||||
<xref linkend="contents-tar" role="."/></para>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -61,16 +61,15 @@
|
|||||||
|
|
||||||
<para>Make sure that all essential files are in the correct directory:</para>
|
<para>Make sure that all essential files are in the correct directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin
|
<screen><userinput remap="install">mv -v $LFS/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} $LFS/bin
|
||||||
mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib
|
mv -v $LFS/usr/lib/liblzma.so.* $LFS/lib
|
||||||
ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen>
|
ln -svf ../../lib/$(readlink $LFS/usr/lib/liblzma.so) $LFS/usr/lib/liblzma.so</userinput></screen>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 role="content">
|
<sect2 role="content">
|
||||||
<title/>
|
<title/>
|
||||||
<para>Details on this package are located in<!-- TODO
|
<para>Details on this package are located in <xref linkend="contents-xz" role="."/></para>
|
||||||
<xref linkend="contents-xz" role="."/> --></para>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<para>The Findutils package contains programs to find files. These programs
|
<para>The Findutils package contains programs to find files. These programs
|
||||||
are provided to recursively search through a directory tree and to
|
are provided to recursively search through a directory tree and to
|
||||||
create, maintain, and search a database (often faster than the recursive
|
create, maintain, and search a database (often faster than the recursive
|
||||||
find, but unreliable if the database has not been recently updated).</para>
|
find, but is unreliable if the database has not been recently updated).</para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<sect2 role="package">
|
<sect2 role="package">
|
||||||
<title/>
|
<title/>
|
||||||
|
|
||||||
<para>The Grep package contains programs for searching through files.</para>
|
<para>The Grep package contains programs for searching through teh contents of files.</para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
<sect2 role="package">
|
<sect2 role="package">
|
||||||
<title/>
|
<title/>
|
||||||
|
|
||||||
<para>The Make package contains a program for compiling packages.</para>
|
<para>The Make package contains a program for controlling the generation of
|
||||||
|
executables and other non-source files of a program from the program's
|
||||||
|
source files. .</para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
|
@ -23,7 +23,10 @@
|
|||||||
<sect2 role="package">
|
<sect2 role="package">
|
||||||
<title/>
|
<title/>
|
||||||
|
|
||||||
<para>The Tar package contains an archiving program.</para>
|
<para>The Tar package provides the ability to create tar archives, as well
|
||||||
|
as various other kinds of manipulation. Tar can be used on
|
||||||
|
previously created archives to extract files, to store additional files, or
|
||||||
|
to update or list files which were already stored. </para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!ENTITY version "20200608-cross2">
|
<!ENTITY version "20200610-cross2">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||||
Change to x.y for release but not -rc releases -->
|
Change to x.y for release but not -rc releases -->
|
||||||
<!ENTITY generic-version "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
<!ENTITY versiond "20200608-cross2-systemd">
|
<!ENTITY versiond "20200610-cross2-systemd">
|
||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "20200608-cross2-systemd">
|
<!ENTITY generic-versiond "20200610-cross2-systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "June 8th, 2020">
|
<!ENTITY releasedate "June 10th, 2020">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user