aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/bzip2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/bzip2.xml')
-rw-r--r--chapter05/bzip2.xml30
1 files changed, 28 insertions, 2 deletions
diff --git a/chapter05/bzip2.xml b/chapter05/bzip2.xml
index 0a61d8f7e..4f1e3aab9 100644
--- a/chapter05/bzip2.xml
+++ b/chapter05/bzip2.xml
@@ -44,13 +44,39 @@
<title>Installation of Bzip2</title>
<para>The Bzip2 package does not contain a <command>configure</command>
- script. Compile and test it with:</para>
+ script. There are two <filename>Makefile</filename>, one for the shared
+ library, and the other for the static library. Since we need both, We
+ do the compilation in two stages. First the shared library:</para>
+
+<screen><userinput remap="make">make -f Makefile-libbz2_so
+make clean</userinput></screen>
+
+ <variablelist>
+ <title>The meaning of the make parameter:</title>
+
+ <varlistentry>
+ <term><parameter>-f Makefile-libbz2_so</parameter></term>
+ <listitem>
+ <para>This will cause Bzip2 to be built using a different
+ <filename>Makefile</filename> file, in this case the
+ <filename>Makefile-libbz2_so</filename> file, which creates a dynamic
+ <filename class="libraryfile">libbz2.so</filename> library and links
+ the Bzip2 utilities against it.</para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+
+ <para>Compile and test the package with:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>Install the package:</para>
-<screen><userinput remap="install">make PREFIX=/tools install</userinput></screen>
+<screen><userinput remap="install">make PREFIX=/tools install
+cp -v bzip2-shared /tools/bin/bzip2
+cp -av libbz2.so* /tools/lib
+ln -sv libbz2.so.1.0 /tools/lib/libbz2.so</userinput></screen>
</sect2>