MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« Lz4 64-bit HOME ZStd 64-bit »

Lz4 32-bit

Name: Lz4 32-bit
Summary: A lossless compression library
License: BSD-2-Clause/GPLv2 or later
Version: 1.10.0
URL: https://github.com/lz4/lz4/releases/download/v1.10.0/lz4-1.10.0.tar.gz

Average Build Time: 0.1 SBU
Used Install Space: 4.2 MiB

Configuration

The sources for Lz4 do not have a traditional configuration script.

Compilation and Installation

To compile Lz4 32-bit, run the following commands:

make clean
CC="gcc -m32" make -j1 BUILD_STATIC=no

Finally, to install Lz4 32-bit into the build tree, run the following commands:

make -j1 CFLAGS=" -m32" BUILD_STATIC=no PREFIX=/usr DESTDIR=$(pwd)/m32 install && \
cp -a m32/usr/lib/* /usr/lib/
rm -fv /usr/lib/liblz4.a

Contents

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

Navigation    
« Lz4 64-bit HOME ZStd 64-bit »