MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« LibEConf 64-bit HOME Linux PAM 64-bit »

LibEConf 32-bit

Name: LibEConf 32-bit
Summary: Userspace tools for POSIX 1003.1e privilege capabilities
License: BSD-3-Clause or GPL v2.0
Version: 2.76
URL: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.76.tar.xz

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

Configuration

To configure LibEConf 32-bit for install into the build root, run the following commands:

rm -rf x86_64-pc-linux-gnu
CONFIG_SHELL="${CONFIG_SHELL:-/usr/bin/bash}"; export CONFIG_SHELL
CFLAGS="${CFLAGS:--O2 -g -m32 -march=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}"; export CFLAGS
CXXFLAGS="${CXXFLAGS:--O2 -m32 -march=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}"; export CXXFLAGS
FFLAGS="${FFLAGS:--O2 -g -m32 -march=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables }"; export FFLAGS
FCFLAGS="${FCFLAGS:--O2 -g -m32 -march=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables }"; export FCFLAGS
LDFLAGS="${LDFLAGS:-}"; export LDFLAGS

/usr/bin/meson setup --buildtype=plain --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled -Ddefault_library=both . i686-pc-linux-gnu

Compilation and Installation

To compile LibEConf 32-bit, run the following command:

/usr/bin/meson compile -C i686-pc-linux-gnu -j4 --verbose

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

DESTDIR=$PWD/DESTDIR \
/usr/bin/meson install -C i686-pc-linux-gnu --no-rebuild
rm -fv DESTDIR/usr/lib/libeconf.a
cp -Rv DESTDIR/usr/lib/* /usr/lib/

unset CONFIG_SHELL
unset CFLAGS
unset CXXFLAGS
unset FFLAGS
unset FCFLAGS
unset LDFLAGS

Contents

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

Navigation    
« LibEConf 64-bit HOME Linux PAM 64-bit »