From 54eee9df478c297f508b69fcb3ebfa456d73e0ab Mon Sep 17 00:00:00 2001 From: Timothy Bauscher Date: Mon, 2 Sep 2002 00:01:22 +0000 Subject: 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 --- chapter06/aboutdebug.xml | 15 ++++++--------- chapter06/man-exp.xml | 4 ++++ chapter06/man-inst.xml | 5 ++++- 3 files changed, 14 insertions(+), 10 deletions(-) (limited to 'chapter06') 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. To remove debugging symbols from a binary (must be an a.out or ELF binary) run strip --strip-debug filename. Wildcards can be used to strip debugging symbols from multiple files (use something -like strip --strip-debug $LFS/usr/bin/*). -Most people will probably never use a debugger on software, so by -removing those symbols a lot of disk space can be regained. +like strip --strip-debug $LFS/usr/bin/*). Most +people will probably never use a debugger on software, so by removing +those symbols a lot of disk space can be regained. 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 $LFS/static - -You might find additional information in the optimization hint which can -be found at . +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 . 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. +sed -e '/^NROFF/s/-mandoc/-c -mandoc/': +This prevents groff from using SGR (Set Graphics Rendition) escape +sequences on our man pages. + 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 @@ Run the following commands to install man: PATH=$PATH:/usr/bin:/bin \ -    ./configure -default -confdir=/etc && +    ./configure -default -confdir=/etc && make && +cp src/man.conf{,.backup} && +sed -e '/^NROFF/s/-mandoc/-c -mandoc/' \ +    src/man.conf.backup > src/man.conf && make install You may want to take a look at the man hint -- cgit v1.2.3-54-g00ecf