Chapter 5 - Binutils Pass 1: Add extra LDFLAGS to ensure static rebuild of ld. Add some clarifying notes re package directory removal and POSIX shared memory.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2918 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Greg Schafer 2003-10-04 02:55:49 +00:00
parent e4df1fcaf7
commit 1e66abe82d
6 changed files with 25 additions and 16 deletions

View File

@ -95,6 +95,9 @@
</itemizedlist>
</para></listitem>
<listitem><para>October 4th, 2003 [greg]: Chapter 5 - Binutils Pass 1: Add
extra LDFLAGS to ensure static rebuild of ld.</para></listitem>
<listitem><para>October 2nd, 2003 [greg]: Chapter 6: Reinstate
INSTALL=/tools/bin/install for linker adjustment command due to issues on hosts
where a ginstall symlink exists. This renders the "install" symlinks redundant

View File

@ -34,7 +34,9 @@ that is conveniently available throughout the entire build. You'll also need a
working directory in which to unpack the sources and build them. A scheme that
works well is to use $LFS/tools/src/packages for all the downloaded files and
$LFS/tools/src for the working directory. In this way, everything will be on the
LFS partition and always available.</para>
LFS partition and always available. Normally, you should delete the source and
build directories after each package installation, unless instructed to do
otherwise.</para>
<!--
<para>For your convenience the top of the list contains a link to a file

View File

@ -64,7 +64,7 @@ strictly speaking, <userinput>"-all-static"</userinput> is first passed to the
<para>Now prepare the linker for the "locking in" of Glibc later on:</para>
<para><screen><userinput>make -C ld clean
make -C ld LIB_PATH=/tools/lib</userinput></screen></para>
make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen></para>
<para>The meaning of the make options:</para>
@ -73,12 +73,13 @@ make -C ld LIB_PATH=/tools/lib</userinput></screen></para>
to remove all the compiled files, but only in the <filename>ld</filename>
subdirectory.</para></listitem>
<listitem><para><userinput>-C ld LIB_PATH=/tools/lib</userinput>: This option
rebuilds everything in the <filename>ld</filename> subdirectory. Specifying the
LIB_PATH makefile variable on the command line allows us to override the default
value and have it point to our temporary tools location. The value of this
variable specifies the linker's default library search path. You'll see how this
preparation is utilised later on in the chapter.</para></listitem>
<listitem><para><userinput>-C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput>:
This option rebuilds everything in the <filename>ld</filename> subdirectory.
Specifying the LIB_PATH makefile variable on the command line allows us to
override the default value and have it point to our temporary tools location.
The value of this variable specifies the linker's default library search path.
You'll see how this preparation is utilised later on in the
chapter.</para></listitem>
</itemizedlist>
<warning><para>Do not yet remove the Binutils build and source directories. You

View File

@ -32,9 +32,12 @@ end of the line should be replaced with <emphasis>0 0</emphasis>, as such a
partition does not need to be dumped or checked</para>
<para>The <filename>/dev/shm</filename> mount point for tmpfs is included to
comply with Posix shared memory requirements. For more information on this,
see <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel
source tree.</para>
enable POSIX shared memory. Your kernel must have the required support built
into it for this to work. More about this in the next section. Please note that
currently, very little software actually uses POSIX shared memory. Therefore you
can consider the <filename>/dev/shm</filename> mount optional. For more
information, see <filename>Documentation/filesystems/tmpfs.txt</filename> in the
kernel source tree.</para>
<para>There are other lines which you may consider adding to your
<filename>fstab</filename> file. One example is a line to use if you intend to

View File

@ -30,9 +30,9 @@ kernel config file, <filename>.config</filename>, from your host system to the
<filename class="directory">$LFS/usr/src/linux-&kernel-version;</filename>
directory.</para>
<para>It's important to note that to be compliant with POSIX shared memory
requirements, we must enable the tmpfs filesystem option, and mount a tmpfs
filesystem at <filename>/dev/shm</filename>.</para>
<para>For POSIX shared memory support, ensure that the kernel config option
"Virtual memory file system support" is enabled. It resides within the "File
systems" menu and is normally enabled by default.</para>
<para>Verify dependencies and create dependency information files:</para>

View File

@ -3,8 +3,8 @@
"/usr/share/docbook/docbookx.dtd" [
<!ENTITY version "20031002">
<!ENTITY releasedate "October 2nd, 2003">
<!ENTITY version "20031004">
<!ENTITY releasedate "October 4th, 2003">
<!ENTITY nbsp " ">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">