aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-01-26 14:45:36 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-01-26 14:45:36 +0000
commit2914987be2f15790bf042ec4f1e39361e6937dc8 (patch)
tree9adba33d5dba875d996ef61796f425d6bdb4c9cc /chapter05
parent40abfd5df275ae22d832a991a24883c28e4259f6 (diff)
Adjust chapter 5 binutils to build a static ld-new for use in the chapter 6 readjusting section.
Also add some extended sanity checks. These fixes are adapted from DIY-Linux and Greg Schafer. Thanks to Dan Nicholson for the report, as well. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7308 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/binutils-pass2.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/chapter05/binutils-pass2.xml b/chapter05/binutils-pass2.xml
index d1bbec87f..ebc0f30e7 100644
--- a/chapter05/binutils-pass2.xml
+++ b/chapter05/binutils-pass2.xml
@@ -49,7 +49,7 @@ cd ../binutils-build</userinput></screen>
<para>Prepare Binutils for compilation:</para>
<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
- --disable-nls --enable-shared --with-lib-path=/tools/lib</userinput></screen>
+ --disable-nls --with-lib-path=/tools/lib</userinput></screen>
<variablelist>
<title>The meaning of the new configure options:</title>
@@ -80,6 +80,13 @@ cd ../binutils-build</userinput></screen>
<para>Install the package:</para>
+ <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in
+ the next chapter:</para>
+
+<screen><userinput>make -C ld clean
+make -C ld LDFLAGS="-s" LIB_PATH=/usr/lib:/lib
+cp -v ld/ld-new /tools/bin</userinput></screen>
+
<screen><userinput>make install</userinput></screen>
</sect2>