macOS: use system zlib and portable make job count

This commit is contained in:
Luke Street
2026-02-20 11:05:05 -07:00
parent 8214ce3d38
commit ff20fcd3b1
+12 -3
View File
@@ -7,7 +7,16 @@ for patch in ../*.patch; do
patch -N -p1 -i "$patch"
done
export CFLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=10.11"
./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared --disable-gprof --without-zstd
make -j$(nproc) configure-host
make -j$(nproc)
if command -v nproc >/dev/null 2>&1; then
JOBS="$(nproc)"
else
JOBS="$(getconf _NPROCESSORS_ONLN 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)"
fi
case "$JOBS" in
''|*[!0-9]*) JOBS=4 ;;
esac
./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared --disable-gprof --without-zstd --with-system-zlib
make -j"$JOBS" configure-host
make -j"$JOBS"
make install-strip