2003-01-11 16:43:41 +00:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Bzip2</title>
|
|
|
|
|
2003-01-11 16:43:41 +00:00
|
|
|
<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>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-11 16:43:41 +00:00
|
|
|
<para><screen><userinput>make CC="gcc -static -s"
|
2002-05-25 01:19:47 +01:00
|
|
|
make PREFIX=$LFS/static install</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-01-11 16:43:41 +00:00
|
|
|
<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>
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|