aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter05/gcc-inst.xml9
-rw-r--r--chapter05/kernel-inst.xml2
-rw-r--r--chapter05/texinfo-inst.xml2
-rw-r--r--chapter06/bin86-inst.xml3
-rw-r--r--chapter06/bin86.xml1
-rw-r--r--chapter06/gcc-inst.xml10
-rw-r--r--chapter06/glibc-inst.xml12
-rw-r--r--chapter06/groff-inst.xml3
-rw-r--r--chapter06/ncurses-inst.xml2
-rw-r--r--chapter06/texinfo-inst.xml2
10 files changed, 24 insertions, 22 deletions
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index c7832bd96..5ff7c5473 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -8,16 +8,11 @@ Install GCC by running the following commands:
<blockquote><literallayout>
<userinput>mkdir $LFS/usr/src/gcc-build &amp;&amp;</userinput>
<userinput>cd $LFS/usr/src/gcc-build &amp;&amp;</userinput>
- <userinput>../gcc-2.95.2.1/configure --prefix=/usr \</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;--with-gxx-include-dir=/usr/include/g++
- \</userinput>
+ <userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --disable-nls
&amp;&amp;</userinput>
<userinput>make -e LDFLAGS=-static bootstrap &amp;&amp;</userinput>
- <userinput>make prefix=$LFS/usr local_prefix=$LFS/usr/local
- \</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;gxx_include_dir=$LFS/usr/include/g++
- install &amp;&amp;</userinput>
+ <userinput>make prefix=$LFS/usr install &amp;&amp;</userinput>
<userinput>cd $LFS/lib &amp;&amp;</userinput>
<userinput>ln -s ../usr/bin/cpp
&amp;&amp;</userinput>
diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml
index 50ace44bb..a12a517b1 100644
--- a/chapter05/kernel-inst.xml
+++ b/chapter05/kernel-inst.xml
@@ -14,6 +14,8 @@ The kernel configuration file is created by running the following command:
</para>
<blockquote><literallayout>
+ <userinput>patch -Np1 -i ../linux-&kernel-version;.patch
+ &amp;&amp;</userinput>
<userinput>make mrproper &amp;&amp;</userinput>
<userinput>yes "" | make config &amp;&amp;</userinput>
<userinput>make dep &amp;&amp;</userinput>
diff --git a/chapter05/texinfo-inst.xml b/chapter05/texinfo-inst.xml
index 317630604..358f09f66 100644
--- a/chapter05/texinfo-inst.xml
+++ b/chapter05/texinfo-inst.xml
@@ -6,6 +6,8 @@ Install Texinfo by running the following commands:
</para>
<blockquote><literallayout>
+ <userinput>patch -Np1 -i ../texinfo-&texinfo-version;.patch
+ &amp;&amp;</userinput>
<userinput>./configure --prefix=$LFS/usr
--disable-nls &amp;&amp;</userinput>
<userinput>make LDFLAGS=-static &amp;&amp;</userinput>
diff --git a/chapter06/bin86-inst.xml b/chapter06/bin86-inst.xml
index 5cfabbb7c..e4d83eaef 100644
--- a/chapter06/bin86-inst.xml
+++ b/chapter06/bin86-inst.xml
@@ -7,8 +7,7 @@ Install Bin86 by running the following commands:
<blockquote><literallayout>
<userinput>make &amp;&amp;</userinput>
- <userinput>make INSTALL_OPTS="-m 755"
- PREFIX=/usr install</userinput>
+ <userinput>make PREFIX=/usr install</userinput>
</literallayout></blockquote>
</sect2>
diff --git a/chapter06/bin86.xml b/chapter06/bin86.xml
index 1f4668dbc..a31e9af84 100644
--- a/chapter06/bin86.xml
+++ b/chapter06/bin86.xml
@@ -2,7 +2,6 @@
<title>Installing Bin86</title>
&c6-bin86-inst;
-&c6-bin86-exp;
&aa-bin86-desc;
</sect1>
diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml
index 474455134..575cefedc 100644
--- a/chapter06/gcc-inst.xml
+++ b/chapter06/gcc-inst.xml
@@ -8,11 +8,11 @@ Install GCC by running the following commands:
<blockquote><literallayout>
<userinput>mkdir /usr/src/gcc-build &amp;&amp;</userinput>
<userinput>cd /usr/src/gcc-build &amp;&amp;</userinput>
- <userinput>../gcc-2.95.2.1/configure --prefix=/usr \</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;--with-gxx-include-dir=/usr/include/g++
- \</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;--enable-shared
- --enable-languages=c,c++ &amp;&amp;</userinput>
+ <userinput>../gcc-&gcc-version;/configure --prefix=/usr \</userinput>
+ <userinput>&nbsp;&nbsp;&nbsp;--with-slibdir=/lib
+ --enable-shared \</userinput>
+ <userinput>&nbsp;&nbsp;&nbsp;--enable-languages=c,c++
+ &amp;&amp;</userinput>
<userinput>make bootstrap &amp;&amp;</userinput>
<userinput>make install</userinput>
</literallayout></blockquote>
diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml
index 5a4dbed5a..a8c94ce2a 100644
--- a/chapter06/glibc-inst.xml
+++ b/chapter06/glibc-inst.xml
@@ -2,7 +2,7 @@
<title>Installation of Glibc</title>
<para>
-Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
+Unpack the glibc-linuxthreads in the glibc-&glibc-version; directory, not in
/usr/src.
</para>
@@ -16,15 +16,15 @@ Install Glibc by running the following commands:
<userinput>mkdir /usr/src/glibc-build &amp;&amp;</userinput>
<userinput>cd /usr/src/glibc-build &amp;&amp;</userinput>
<userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ \</userinput>
- <userinput>&nbsp;&nbsp;&nbsp;../glibc-2.2.1/malloc/Makefile
+ <userinput>&nbsp;&nbsp;&nbsp;../glibc-&glibc-version;/malloc/Makefile
&gt; tmp~ &amp;&amp;</userinput>
- <userinput>mv tmp~ ../glibc-2.2.1/malloc/Makefile &amp;&amp;
+ <userinput>mv tmp~ ../glibc-&glibc-version;/malloc/Makefile &amp;&amp;
</userinput>
- <userinput>sed "s/root/0/" ../glibc-2.2.1/login/Makefile
+ <userinput>sed "s/root/0/" ../glibc-&glibc-version;/login/Makefile
&gt; tmp~ &amp;&amp; </userinput>
- <userinput>mv tmp~ ../glibc-2.2.1/login/Makefile &amp;&amp;
+ <userinput>mv tmp~ ../glibc-&glibc-version;/login/Makefile &amp;&amp;
</userinput>
- <userinput>../glibc-2.2.1/configure \</userinput>
+ <userinput>../glibc-&glibc-version;/configure \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-add-ons
\</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--libexecdir=/usr/bin &amp;&amp;
diff --git a/chapter06/groff-inst.xml b/chapter06/groff-inst.xml
index 1bc083172..fba45efff 100644
--- a/chapter06/groff-inst.xml
+++ b/chapter06/groff-inst.xml
@@ -6,7 +6,8 @@ Install Groff by running the following commands:
</para>
<blockquote><literallayout>
- <userinput>./configure --prefix=/usr &amp;&amp;</userinput>
+ <userinput>CXXFLAGS=-Dstrerror=strerror ./configure --prefix=/usr
+ &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput>
</literallayout></blockquote>
diff --git a/chapter06/ncurses-inst.xml b/chapter06/ncurses-inst.xml
index a314c20a4..7d5570dc2 100644
--- a/chapter06/ncurses-inst.xml
+++ b/chapter06/ncurses-inst.xml
@@ -6,6 +6,8 @@ Install Ncurses by running the following commands:
</para>
<blockquote><literallayout>
+ <userinput>patch -Np1 -i ../ncurses-&ncurses-version;.patch
+ &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr --libdir=/lib \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--with-shared
--disable-termcap &amp;&amp;</userinput>
diff --git a/chapter06/texinfo-inst.xml b/chapter06/texinfo-inst.xml
index 0520e1ccf..fee8ec74d 100644
--- a/chapter06/texinfo-inst.xml
+++ b/chapter06/texinfo-inst.xml
@@ -6,6 +6,8 @@ Install Texinfo by running the following commands:
</para>
<blockquote><literallayout>
+ <userinput>patch -Np1 -i ../texinfo-&texinfo-version;.patch
+ &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>