mtab a real file now
[linux_from_scratch.git] / BOOK / chapter05 / bzip2-inst.xml
blobbb50a64fbf58ab7f4670fe13adb95af7f68c43c3
1 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
3 <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
9 environment:</para>
11 <para><screen><userinput>make CC="gcc -static -s"</userinput></screen></para>
13 <para>The meaning of the make option is:</para>
15 <itemizedlist>
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>
21 </itemizedlist>
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>
29 <itemizedlist>
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>
34 </itemizedlist>
36 </sect2>