diff --git a/Dockerfile b/Dockerfile index cab41b3..30ab24f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ # Build stage -FROM alpine:3.19.0 AS build +FROM alpine:3.19.1 AS build # Install dependencies RUN apk add --no-cache gcc musl-dev make # Download and extract source -RUN wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ +RUN wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz | tar -xJ # Build binutils -WORKDIR /binutils-2.41 +WORKDIR /binutils-2.42 RUN ./configure --target=powerpc-eabi --prefix=/target --disable-nls --disable-shared \ && make -j$(nproc) configure-host \ && make -j$(nproc) LDFLAGS=-all-static \ diff --git a/build-macos.sh b/build-macos.sh index ba1b481..ddcf32a 100755 --- a/build-macos.sh +++ b/build-macos.sh @@ -1,7 +1,7 @@ #!/bin/bash -ex PREFIX="$(pwd)/build" -wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ -cd binutils-2.41 +wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz | tar -xJ +cd binutils-2.42 export CFLAGS="-arch arm64 -arch x86_64 -mmacosx-version-min=10.11" ./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared --without-zstd make -j$(nproc) configure-host diff --git a/build-windows.sh b/build-windows.sh index 1cbcee6..36bfac4 100644 --- a/build-windows.sh +++ b/build-windows.sh @@ -1,7 +1,7 @@ #!/bin/bash -ex PREFIX="$(pwd)/build" -wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.xz | tar -xJ -cd binutils-2.41 +wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.xz | tar -xJ +cd binutils-2.42 ./configure --target=powerpc-eabi --prefix="$PREFIX" --disable-nls --disable-shared make -j$(nproc) configure-host make -j$(nproc)