1 <sect2><title> </title><para> </para></sect2>
4 <title>Installation of Bzip2</title>
6 <para>Since the Bzip2 package has no configure script we can't prepare it
7 for compilation. Instead we just run the <userinput>make</userinput>
8 program and start compiling, with a few variables changed to suit our
11 <para><screen><userinput>make CC="gcc -static -s"</userinput></screen></para>
13 <para>The meaning of the make option is:</para>
16 <listitem><para><userinput>CC="gcc -static -s":</userinput> The Bzip2 package
17 does not honour the <emphasis>LDFLAGS</emphasis> variable, so instead we set
18 the <emphasis>CC</emphasis> variable which defines which compiler to use.
19 The <emphasis>-static</emphasis> option tells the compiler to link all
20 programs statically.</para></listitem>
23 <para>And finish off installing the package:</para>
25 <para><screen><userinput>make PREFIX=$LFS/static install</userinput></screen></para>
27 <para>The meaning of the make option is:</para>
30 <listitem><para><userinput>PREFIX=$LFS/static:</userinput> Instead of
31 passing a <emphasis>--prefix=$LFS/static</emphasis> to a configure script,
32 we set the <emphasis>PREFIX</emphasis> variable to accomplish the same goal
33 (since there is no configure script present).</para></listitem>