aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorTimothy Bauscher <timothy@linuxfromscratch.org>2002-09-02 00:01:22 +0000
committerTimothy Bauscher <timothy@linuxfromscratch.org>2002-09-02 00:01:22 +0000
commit54eee9df478c297f508b69fcb3ebfa456d73e0ab (patch)
tree482bd5f49106773a585faba7ddbf19be431525b0 /chapter06
parentd0e55a67df31dab8bbf39e47da7aae6de91c062e (diff)
Fix man bug, added a CC variable to omit symbols from compilation in static packages.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2077 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/aboutdebug.xml15
-rw-r--r--chapter06/man-exp.xml4
-rw-r--r--chapter06/man-inst.xml5
3 files changed, 14 insertions, 10 deletions
diff --git a/chapter06/aboutdebug.xml b/chapter06/aboutdebug.xml
index 2d9d904fc..a4ffefc52 100644
--- a/chapter06/aboutdebug.xml
+++ b/chapter06/aboutdebug.xml
@@ -37,17 +37,14 @@ similar if you compare programs with and without debugging symbols.</para>
<para>To remove debugging symbols from a binary (must be an a.out or ELF
binary) run <userinput>strip --strip-debug filename</userinput>. Wildcards
can be used to strip debugging symbols from multiple files (use something
-like <userinput>strip --strip-debug $LFS/usr/bin/*</userinput>).
-Most people will probably never use a debugger on software, so by
-removing those symbols a lot of disk space can be regained.</para>
+like <userinput>strip --strip-debug $LFS/usr/bin/*</userinput>). Most
+people will probably never use a debugger on software, so by removing
+those symbols a lot of disk space can be regained.</para>
<para>For your convenience, chapter 9 includes one simple command to strip
-all debugging symbols from all programs and libraries on your
-system. If you are short on diskspace you can start with stripping
-all the files under <filename class="directory">$LFS/static</filename></para>
-
-<para>You might find additional information in the optimization hint which can
-be found at <ulink url="&hints-root;optimization.txt"/>.</para>
+all debugging symbols from the programs and libraries on your system. You
+might find additional information in the optimization hint which can be
+found at <ulink url="&hints-root;optimization.txt"/>.</para>
</sect1>
diff --git a/chapter06/man-exp.xml b/chapter06/man-exp.xml
index 5c70e18c3..00c41e2ae 100644
--- a/chapter06/man-exp.xml
+++ b/chapter06/man-exp.xml
@@ -8,5 +8,9 @@ where a program is found. By appending /usr/bin:/bin to PATH for the
./configure command, we make sure that man doesn't use the /static versions
of our programs.</para>
+<para><userinput>sed -e '/^NROFF/s/-mandoc/-c -mandoc/'</userinput>:
+This prevents groff from using SGR (Set Graphics Rendition) escape
+sequences on our man pages.</para>
+
</sect2>
diff --git a/chapter06/man-inst.xml b/chapter06/man-inst.xml
index 0e8fff874..38fdcd8e4 100644
--- a/chapter06/man-inst.xml
+++ b/chapter06/man-inst.xml
@@ -4,8 +4,11 @@
<para>Run the following commands to install man:</para>
<para><screen><userinput>PATH=$PATH:/usr/bin:/bin \
-&nbsp;&nbsp;&nbsp;&nbsp;./configure -default -confdir=/etc &&
+&nbsp;&nbsp;&nbsp;&nbsp;./configure -default -confdir=/etc &amp;&amp;
make &amp;&amp;
+cp src/man.conf{,.backup} &amp;&amp;
+sed -e '/^NROFF/s/-mandoc/-c -mandoc/' \
+&nbsp;&nbsp;&nbsp;&nbsp;src/man.conf.backup > src/man.conf &amp;&amp;
make install</userinput></screen></para>
<para>You may want to take a look at the man hint