pthbs

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

commit 0d26c33ed8ced5010fac6ed96934e71aaefc207c
parent e6fc5b183e3bfe02dd33e7d8cf2bfb0d81541c92
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Fri, 22 Sep 2023 04:44:50 +0200

handle undefined CC in automake template

Diffstat:
Mtemplates/autotools | 2+-
Atemplates/pkg/bootstrap.environment | 3+++
Mtemplates/pkg/rsync | 9++++++++-
3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/templates/autotools b/templates/autotools @@ -19,7 +19,7 @@ autotools() { prefix={{versions}}/$pthbs_package ./configure -C \ --prefix="$prefix" \ - --build="$($CC -dumpmachine)" \ + --build="$(${CC:-gcc} -dumpmachine)" \ --bindir="$prefix/command" \ --sbindir="$prefix/command" \ --infodir="$prefix/info" \ diff --git a/templates/pkg/bootstrap.environment b/templates/pkg/bootstrap.environment @@ -0,0 +1,3 @@ +#+{{pkg_install_name("busybox:bootstrap")}} +#+{{pkg_install_name("gnu-make:bootstrap")}} +#+{{pkg_install_name("musl-cross-make:bootstrap")}} diff --git a/templates/pkg/rsync b/templates/pkg/rsync @@ -7,7 +7,14 @@ export CFLAGS="-D_GNU_SOURCE" export LDFLAGS="-static" -autotools rsync-3.2.7 --enable-static --disable-shared --disable-nls --without-included-popt --disable-openssl +autotools rsync-3.2.7 \ + --enable-static --disable-shared --disable-nls \ + --without-included-popt \ + --disable-openssl \ + --disable-xxhash \ + --disable-zstd \ + --disable-lz4 \ + {% endblock %} {% block genlinks_begin %} x["./command/rsync"]=1