mirror of
https://github.com/encounter/gc-wii-binutils.git
synced 2026-07-10 03:18:49 -07:00
macOS: use system zlib and portable make job count
This commit is contained in:
+12
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user