aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/bzip2.xml
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2019-12-22 10:06:21 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2019-12-22 10:06:21 +0000
commite45f19f97c59ee725c05ee0f642371988866dc5a (patch)
treef83282e6c59b7ca768c309b1c1ed6131a012ad11 /chapter05/bzip2.xml
parent957ce6b7afbe27d4eae1971847ae673298c2e1e0 (diff)
File-5.38
Vim-8.2.0024 Linux-5.4.6 Python-3.8.1 Some updates in SBU and disk usage git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
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>