MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« LibSEManage 64-bit HOME CheckPolicy »

LibSEManage 32-bit

Name: LibSEManage 32-bit
Summary: SELinux policy management library
License: LGPL v2.1
Version: 3.9
URL: https://github.com/SELinuxProject/selinux/releases/download/3.9/libsemanage-3.9.tar.gz

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

Configuration

The package does not have a traditional configuration script.

Compilation and Installation

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

make clean
grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|/usr/lib64|g"
make CC="gcc -m32 -march=i686"

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

PREFIX=/usr LIBDIR=/usr/lib LIBEXECDIR=/usr/lib SHLIBDIR=/usr/lib DESTDIR=$PWD/DESTDIR make install
rm -rfv DESTDIR/usr/lib/selinux
cp -Rv DESTDIR/usr/lib/* /usr/lib/

Other libraries and programs of the suite of tools for SELinux require linking against the static library for LibSEManage, as such it is not removed.

Contents

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

Navigation    
« LibSEManage 64-bit HOME CheckPolicy »