diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-01-11 16:43:41 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-01-11 16:43:41 +0000 |
commit | 873ec177165d1a9d97a917d532902b55567a18e5 (patch) | |
tree | bc221e19cf0ee6039a66feecda8054c36dc4354a /chapter05/bzip2-inst.xml | |
parent | 90423c094424faf7172bf9642f3db2843e11bccd (diff) |
rewrote bzip2 installation page
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2309 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/bzip2-inst.xml')
-rw-r--r-- | chapter05/bzip2-inst.xml | 25 |
1 files changed, 23 insertions, 2 deletions
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 @@ +<sect2><title> </title><para> </para></sect2> + <sect2> <title>Installation of Bzip2</title> -<para>Install Bzip2 by running the following commands:</para> +<para>Since the Bzip2 package has no configure script we can't prepare it +for compilation. Instead we just run the <userinput>make</userinput> +program and start compiling, with a few variables changed to suit our +environment:</para> -<para><screen><userinput>make CC="gcc -static -s" && +<para><screen><userinput>make CC="gcc -static -s" make PREFIX=$LFS/static install</userinput></screen></para> +<para>The meaning of the make options are:</para> + +<itemizedlist> + +<listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package +does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set +the <emphasis>CC</emphasis> variable which defines which compiler to use. +The <emphasis>-static</emphasis> option tells the compiler to link all +programs statically.</para></listitem> + +<listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of +passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script, +we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal +(since there is no configure script present).</para></listitem> +</itemizedlist> + </sect2> |