Static binaries for ARM using Slackware

Note: This article was taken from the archived proot-static-build repository's README.md file

The ARM one was built on x86_64 using this command:

# Build PRoot/ARM statically: 
cd ~/git/proot-static-build 
mkdir build-arm 
cd build-arm 
proot -R ~/rootfs/slackwarearm-14.1 -b $(which cmake) -q qemu-arm make glibc-version=glibc-2.18 -f ../GNUmakefile proot -j4 

Where slackwarearm-14.1 was created this way:

# Get Slackware/ARM packages: 
wget -r -np http://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/{a,ap,d,e,l,n,tcl}/ 
mkdir ~/rootfs/slackwarearm-14.1 

# Extract only a minimal subset (ignore errors): 
ls ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/{a,l}/*.t?z | xargs -n 1 tar -C ~/rootfs/slackwarearm-14.1 -xf 

# Do a minimal post-installation setup: 
mv ~/rootfs/slackwarearm-14.1/lib/incoming/* ~/rootfs/slackwarearm-14.1/lib/ 
mv ~/rootfs/slackwarearm-14.1/bin/bash4.new ~/rootfs/slackwarearm-14.1/bin/bash 
proot -q qemu-arm -r ~/rootfs/slackwarearm-14.1 /sbin/ldconfig 
proot -q qemu-arm -r ~/rootfs/slackwarearm-14.1 ln -s /bin/bash /bin/sh 

# Install all package correcty (ignore warnings): 
ls ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/*/*.t?z | xargs -n 1 proot -q qemu-arm -S ~/rootfs/slackwarearm-14.1 -b ftp.arm.slackware.com installpkg