pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit 26ac49acd9773a2bbae34c99d09483a374d370ce
parent f267e69b01349d2a47a7bbdb39df85ebcce2f931
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Thu,  4 Mar 2021 17:08:28 +0000

Actually build static binaries, autoparallelize build.

Diffstat:
Minstall-all | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/install-all b/install-all @@ -2,12 +2,17 @@ set -x : ${slashpackage:=${HOME}/local} +: ${jobs:=$(grep '^processor\t*:' /proc/cpuinfo | wc -l)} + +if test 1 -gt "$jobs"; then + jobs=1 +fi install_skalibs() { git checkout --force || exit $? git clean -fx || exit $? ./configure --disable-shared --enable-static --enable-slashpackage="$slashpackage" || exit $? - make || exit $? + make -j${jobs} || exit $? make install || exit $? make -L update || exit $? make -L global-links || exit $? @@ -17,8 +22,8 @@ install_s6() { git checkout --force || exit $? git clean -fx || exit $? patch -up 1 -i ../s6_clone_newpid.patch || exit $? - ./configure --disable-shared --enable-static --enable-allstatic --enable-slashpackage="$slashpackage" || exit $? - make || exit $? + ./configure --disable-shared --enable-static --enable-allstatic --enable-static-libc --enable-slashpackage="$slashpackage" || exit $? + make -j${jobs} || exit $? make install || exit $? make -L update || exit $? make -L global-links || exit $? @@ -27,8 +32,8 @@ install_s6() { install_generic() { git checkout --force || exit $? git clean -fx || exit $? - ./configure --disable-shared --enable-static --enable-allstatic --enable-slashpackage="$slashpackage" || exit $? - make || exit $? + ./configure --disable-shared --enable-static --enable-allstatic --enable-static-libc --enable-slashpackage="$slashpackage" || exit $? + make -j${jobs} || exit $? make install || exit $? make -L update || exit $? make -L global-links || exit $?