mirror of
https://github.com/encounter/xbox360-binutils.git
synced 2026-07-11 06:18:50 -07:00
Xbox 360 (Xenon) big-endian PowerPC COFF support patched onto binutils 2.45.1, with cross-platform CI mirroring gc-wii-binutils.
14 lines
481 B
Bash
Executable File
14 lines
481 B
Bash
Executable File
#!/bin/bash -ex
|
|
PREFIX="$(pwd)/build"
|
|
mkdir source
|
|
wget -qO- https://ftp.gnu.org/gnu/binutils/binutils-2.45.1.tar.xz | tar -xJ -C source --strip-components=1
|
|
cd source
|
|
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-xenon-pe --prefix="$PREFIX" --disable-nls --disable-shared --disable-gprof --without-zstd
|
|
make -j$(nproc) configure-host
|
|
make -j$(nproc)
|
|
make install-strip
|