mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
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:
parent
e4df1fcaf7
commit
1e66abe82d
@ -95,6 +95,9 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</para></listitem>
|
</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
|
<listitem><para>October 2nd, 2003 [greg]: Chapter 6: Reinstate
|
||||||
INSTALL=/tools/bin/install for linker adjustment command due to issues on hosts
|
INSTALL=/tools/bin/install for linker adjustment command due to issues on hosts
|
||||||
where a ginstall symlink exists. This renders the "install" symlinks redundant
|
where a ginstall symlink exists. This renders the "install" symlinks redundant
|
||||||
|
@ -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
|
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
|
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/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
|
<para>For your convenience the top of the list contains a link to a 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>Now prepare the linker for the "locking in" of Glibc later on:</para>
|
||||||
|
|
||||||
<para><screen><userinput>make -C ld clean
|
<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>
|
<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>
|
to remove all the compiled files, but only in the <filename>ld</filename>
|
||||||
subdirectory.</para></listitem>
|
subdirectory.</para></listitem>
|
||||||
|
|
||||||
<listitem><para><userinput>-C ld LIB_PATH=/tools/lib</userinput>: This option
|
<listitem><para><userinput>-C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput>:
|
||||||
rebuilds everything in the <filename>ld</filename> subdirectory. Specifying the
|
This option rebuilds everything in the <filename>ld</filename> subdirectory.
|
||||||
LIB_PATH makefile variable on the command line allows us to override the default
|
Specifying the LIB_PATH makefile variable on the command line allows us to
|
||||||
value and have it point to our temporary tools location. The value of this
|
override the default value and have it point to our temporary tools location.
|
||||||
variable specifies the linker's default library search path. You'll see how this
|
The value of this variable specifies the linker's default library search path.
|
||||||
preparation is utilised later on in the chapter.</para></listitem>
|
You'll see how this preparation is utilised later on in the
|
||||||
|
chapter.</para></listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
|
|
||||||
<warning><para>Do not yet remove the Binutils build and source directories. You
|
<warning><para>Do not yet remove the Binutils build and source directories. You
|
||||||
|
@ -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>
|
partition does not need to be dumped or checked</para>
|
||||||
|
|
||||||
<para>The <filename>/dev/shm</filename> mount point for tmpfs is included to
|
<para>The <filename>/dev/shm</filename> mount point for tmpfs is included to
|
||||||
comply with Posix shared memory requirements. For more information on this,
|
enable POSIX shared memory. Your kernel must have the required support built
|
||||||
see <filename>Documentation/filesystems/tmpfs.txt</filename> in the kernel
|
into it for this to work. More about this in the next section. Please note that
|
||||||
source tree.</para>
|
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
|
<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
|
<filename>fstab</filename> file. One example is a line to use if you intend to
|
||||||
|
@ -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>
|
<filename class="directory">$LFS/usr/src/linux-&kernel-version;</filename>
|
||||||
directory.</para>
|
directory.</para>
|
||||||
|
|
||||||
<para>It's important to note that to be compliant with POSIX shared memory
|
<para>For POSIX shared memory support, ensure that the kernel config option
|
||||||
requirements, we must enable the tmpfs filesystem option, and mount a tmpfs
|
"Virtual memory file system support" is enabled. It resides within the "File
|
||||||
filesystem at <filename>/dev/shm</filename>.</para>
|
systems" menu and is normally enabled by default.</para>
|
||||||
|
|
||||||
<para>Verify dependencies and create dependency information files:</para>
|
<para>Verify dependencies and create dependency information files:</para>
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
"/usr/share/docbook/docbookx.dtd" [
|
"/usr/share/docbook/docbookx.dtd" [
|
||||||
|
|
||||||
|
|
||||||
<!ENTITY version "20031002">
|
<!ENTITY version "20031004">
|
||||||
<!ENTITY releasedate "October 2nd, 2003">
|
<!ENTITY releasedate "October 4th, 2003">
|
||||||
<!ENTITY nbsp " ">
|
<!ENTITY nbsp " ">
|
||||||
|
|
||||||
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
||||||
|
Loading…
Reference in New Issue
Block a user