MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« BZip2 64-bit HOME XZ 64-bit »

BZip2 32-bit

Name: BZip2 32-bit
Summary: An efficient file compression tool
License: BSD-3-Clause
Version: 1.0.8
URL: https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz

Average Build Time: less than 0.1 SBU
Used Install Space: 7.3 MiB

Preparation

First, clean the previously extracted source tree to allow the 32-bit build to work:

make clean

Compilation and Installation

After preparing the BZip2 sources for build, run the following commands to generate a dynamic 32-bit library:

sed -e "s/^CC=.*/CC=gcc -m32/" -i Makefile{,-libbz2_so}
make -f Makefile-libbz2_so
make libbz2.a

Finally, to install BZip2 64-bit into the build tree, run the following commands:

install -Dm755 libbz2.so.1.0.8 /usr/lib/libbz2.so.1.0.8
ln -sf libbz2.so.1.0.8 /usr/lib/libbz2.so
ln -sf libbz2.so.1.0.8 /usr/lib/libbz2.so.1
ln -sf libbz2.so.1.0.8 /usr/lib/libbz2.so.1.0

Contents

See the contents section of the 64-bit build of BZip2 for details.

Navigation    
« BZip2 64-bit HOME XZ 64-bit »