From 22fc5227c4eb031901ce2b68ba0ea9a5d76d29ddc98fdddfda4a1ccc79f601f1 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 12 May 2025 22:29:43 -0400 Subject: [PATCH 1/2] Fix building when webp libs are not there. --- src/webp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webp.cc b/src/webp.cc index 7b6d839..45566dd 100644 --- a/src/webp.cc +++ b/src/webp.cc @@ -218,8 +218,8 @@ void *a_Webp_new(DilloImage *Image, DilloUrl *url, int version) #else /* ENABLE_WEBP */ -void *a_Webp_new() { return 0; } -void a_Webp_callback() { return; } +void *a_Webp_new(DilloImage *, DilloUrl *, int) { return 0; } +void a_Webp_callback(int Op, void *data) { return; } const char *a_Webp_version(char *buf, int n) { return 0; } #endif /* ENABLE_WEBP */ From 44bf91d361ebdd6739eb9eb80fe0e69033f5ee02ef2c2fa78b4f48447d11b5bb Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 12 May 2025 22:20:22 -0400 Subject: [PATCH 2/2] Automatic processor count for parallel make --- rebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rebuild b/rebuild index 940d381..5d2b1df 100755 --- a/rebuild +++ b/rebuild @@ -1,7 +1,12 @@ #!/usr/bin/env bash +processor_count=`grep -c "^processor" /proc/cpuinfo` +count=$((${processor_count} - 1)) +echo "Detected ${processor_count} processors, using ${count}" + make distclean pushd .. ./autogen.sh popd + ../configure --prefix=/opt/local --enable-ipv6 CXXFLAGS="-O0 -g" -make -kj11 +make -kj${count}