MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« Shadow Utils 64-bit HOME GNU Compiler Collection »

Shadow Utils 32-bit - With Linux PAM Support

Name: Shadow Utils 32-bit
Summary: Managing user and group passwords securely
License: BSD 3-Clause
Version: 4.18.0
URL: https://github.com/shadow-maint/shadow/releases/download/4.18.0/shadow-4.18.0.tar.xz

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

Configuration

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

make distclean
export CFLAGS="-O2 -m32 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fpie"
export LDFLAGS="-pie"
./configure --host=i686-pc-linux-gnu \
            --sysconfdir=/etc               \
            --libdir=/usr/lib               \
            --with-{b,yes}crypt             \
            --without-libbsd                \
            --with-acl                      \
            --with-attr                     \
            --without-btrfs                 \
            --with-audit                    \
            --without-sssd                  \
            --with-group-name-max-length=32

Compilation and Installation

To compile Shadow Utils 32-bit, run the following command:

make

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

unalias cp
make DESTDIR=$PWD/DESTDIR exec_prefix=/usr install
rm -fv DESTDIR/usr/lib/libsubid.a
rm -fv DESTDIR/usr/lib/libsubid.la
cp -Rv DESTDIR/usr/lib/* /usr/lib/
unset CFLAGS
unset LDFLAGS
alias cp="cp -i"

Contents

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

Navigation    
« Shadow Utils 64-bit HOME GNU Compiler Collection »