aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/gcc-exp.xml9
-rw-r--r--chapter06/gcc-inst.xml6
-rw-r--r--chapter06/gcc.xml1
-rw-r--r--chapter06/makedev-inst.xml9
-rw-r--r--chapter06/ncurses-exp.xml2
-rw-r--r--chapter06/perl-inst.xml4
-rw-r--r--chapter06/vim-exp.xml2
7 files changed, 22 insertions, 11 deletions
diff --git a/chapter06/gcc-exp.xml b/chapter06/gcc-exp.xml
new file mode 100644
index 000000000..b05214795
--- /dev/null
+++ b/chapter06/gcc-exp.xml
@@ -0,0 +1,9 @@
+<sect2>
+<title>Command explanations</title>
+
+<para><userinput>--enable-__cxa_atexit:</userinput> This option will result
+in C++ shared libraries and C++ programs that are interoperable with other
+linux distributions.</para>
+
+</sect2>
+
diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml
index 60a486886..a3a024a4f 100644
--- a/chapter06/gcc-inst.xml
+++ b/chapter06/gcc-inst.xml
@@ -1,6 +1,10 @@
<sect2>
<title>Installation of GCC</title>
+<para>This package requires its patch to be applied before you can
+install it. Make sure it's unpacked before running the installation
+commands.</para>
+
<para>This package is known to behave badly when you have changed its
default optimization flags (including the -march and -mcpu options). GCC is
best left alone. Therefore, if you have defined any environment variables
@@ -23,7 +27,7 @@ mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp;
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
&nbsp;&nbsp;&nbsp;&nbsp;--enable-languages=c,c++ --enable-threads=posix \
-&nbsp;&nbsp;&nbsp;&nbsp;--with-slibdir=/lib --enable-_cxa-atexit &amp;&amp;
+&nbsp;&nbsp;&nbsp;&nbsp;--with-slibdir=/lib --enable-__cxa_atexit &amp;&amp;
make bootstrap &amp;&amp;
make install &amp;&amp;
ln -s ../usr/bin/cpp /lib &amp;&amp;
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index fc6faaa70..a58451300 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -6,6 +6,7 @@
Estimated required disk space: &gcc-compsize;</screen>
&c6-gcc-inst;
+&c6-gcc-exp;
&aa-gcc-desc;
&aa-gcc-dep;
diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml
index a4d56ff7b..6fa63a064 100644
--- a/chapter06/makedev-inst.xml
+++ b/chapter06/makedev-inst.xml
@@ -9,17 +9,18 @@ won't create a directory for you to cd into.</para>
<para><screen><userinput>ln -s /static/bin/bash /bin/bash &amp;&amp;
cp MAKEDEV-&makedev-version; /dev/MAKEDEV &amp;&amp;
cd /dev &amp;&amp;
-chmod 754 MAKEDEV &amp;&amp;
-rm /bin/bash</userinput></screen></para>
+chmod 754 MAKEDEV</userinput></screen></para>
<para>Now, depending on whether you are going to use devpts or not, you
can run one of two commands:</para>
<para>If you do not intend to use devpts, run:</para>
-<para><screen><userinput>./MAKEDEV -v generic</userinput></screen></para>
+<para><screen><userinput>./MAKEDEV -v generic &amp;&amp;
+rm /bin/bash</userinput></screen></para>
<para>If you do intend to use devpts, then run:</para>
-<para><screen><userinput>./MAKEDEV -v generic-nopty</userinput></screen></para>
+<para><screen><userinput>./MAKEDEV -v generic-nopty &amp;&amp;
+rm /bin/bash</userinput></screen></para>
<para>Note that if you aren't sure, it's best to use
the <userinput>./MAKEDEV -v generic</userinput> command as this will
diff --git a/chapter06/ncurses-exp.xml b/chapter06/ncurses-exp.xml
index f393f9db5..1e9c7d516 100644
--- a/chapter06/ncurses-exp.xml
+++ b/chapter06/ncurses-exp.xml
@@ -3,7 +3,7 @@
<para><userinput>patch -Np1 -i
../ncurses-&ncurses-version;-patch:</userinput> This patch fixes a compile
-problem with GCC-3.1 because Ncurses uses constructions that are no longer
+problem with GCC-3.2 because Ncurses uses constructions that are no longer
valid in the new C++ standard.</para>
<para><userinput>--with-shared:</userinput> This enables the build of the
diff --git a/chapter06/perl-inst.xml b/chapter06/perl-inst.xml
index ef3fa7bbe..66b067ed2 100644
--- a/chapter06/perl-inst.xml
+++ b/chapter06/perl-inst.xml
@@ -1,10 +1,6 @@
<sect2>
<title>Installation of Perl</title>
-<para>This package requires its patch to be applied before you can
-install it. Make sure it's unpacked before running the installation
-commands.</para>
-
<para>Install Perl by running the following commands:</para>
<para><screen><userinput>./configure.gnu --prefix=/usr &amp;&amp;
diff --git a/chapter06/vim-exp.xml b/chapter06/vim-exp.xml
index 570141334..a95c2f902 100644
--- a/chapter06/vim-exp.xml
+++ b/chapter06/vim-exp.xml
@@ -2,7 +2,7 @@
<title>Command explanations</title>
<para><userinput>patch -Np1 -i ../vim-&vim-version;.patch:</userinput> This
-patch fixes a compile problem with GCC-3.1.</para>
+patch fixes a compile problem with GCC-3.2.</para>
<para><userinput>make
CPPFLAGS=-DSYS_VIMRC_FILE=\\\"/etc/vimrc\\\":</userinput> Setting this will