From 873ec177165d1a9d97a917d532902b55567a18e5 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sat, 11 Jan 2003 16:43:41 +0000 Subject: rewrote bzip2 installation page git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2309 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/bzip2-exp.xml | 8 -------- chapter05/bzip2-inst.xml | 25 +++++++++++++++++++++++-- chapter05/bzip2.xml | 5 ++--- 3 files changed, 25 insertions(+), 13 deletions(-) delete mode 100644 chapter05/bzip2-exp.xml (limited to 'chapter05') diff --git a/chapter05/bzip2-exp.xml b/chapter05/bzip2-exp.xml deleted file mode 100644 index c6350d66c..000000000 --- a/chapter05/bzip2-exp.xml +++ /dev/null @@ -1,8 +0,0 @@ - -Command explanations - -make CC="gcc -static -s": These flags instruct -gcc to statically link bzip2, without compiling symbols. - - - diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml index d913d4ad8..f6f8183c2 100644 --- a/chapter05/bzip2-inst.xml +++ b/chapter05/bzip2-inst.xml @@ -1,10 +1,31 @@ +   + Installation of Bzip2 -Install Bzip2 by running the following commands: +Since the Bzip2 package has no configure script we can't prepare it +for compilation. Instead we just run the make +program and start compiling, with a few variables changed to suit our +environment: -make CC="gcc -static -s" && +make CC="gcc -static -s" make PREFIX=$LFS/static install +The meaning of the make options are: + + + +CC="gcc -static -s": The Bzip2 package +does not honour the LDFLAGS variable, so instead we set +the CC variable which defines which compiler to use. +The -static option tells the compiler to link all +programs statically. + +PREFIX=$LFS/static: Instead of +passing a --prefix=$LFS/static to a configure script, +we set the PREFIX variable to accomplish the same goal +(since there is no configure script present). + + diff --git a/chapter05/bzip2.xml b/chapter05/bzip2.xml index 04262f0c5..296bfec6b 100644 --- a/chapter05/bzip2.xml +++ b/chapter05/bzip2.xml @@ -5,10 +5,9 @@ Estimated build time: &bzip2-time-static; Estimated required disk space: &bzip2-compsize-static; -&c5-bzip2-inst; -&c5-bzip2-exp; -&aa-bzip2-desc; +&aa-bzip2-shortdesc; &aa-bzip2-dep; +&c5-bzip2-inst; -- cgit v1.2.3-54-g00ecf