Skip to content

Instantly share code, notes, and snippets.

@rrs42
Last active May 7, 2023 22:47
Show Gist options
  • Save rrs42/5e5b7bd184c3154608b89d0f4dd3a2a8 to your computer and use it in GitHub Desktop.
Save rrs42/5e5b7bd184c3154608b89d0f4dd3a2a8 to your computer and use it in GitHub Desktop.
Script to build the amiga-gcc cross compiler on Mac OS. Assumes being run from the parent directory of where you checked out bebbo/amiga-gcc. Assumes gcc, texinfo, bison, GNU make, bash etc have been installed via Homebrew. Tested on Ventura 13.3.1. Edit the PREFIX line to point to the desired install path. Also assumes you want NDK 3.9, if you …
#!/usr/bin/env bash
set -x
PREFIX="ADD YOUR PREFIX HERE"
PATH=$(brew --prefix bison)/bin:$(brew --prefix texinfo)/bin:${PATH}
export PATH
brew unlink isl
brew link isl@0.18
{
cd amiga-gcc || exit
CC=gcc-12 CXX=g++-12 \
gmake all all-sdk SHELL=$(brew --prefix)/bin/bash NDK=3.9 PREFIX=${PREFIX}
}
brew unlink isl@0.18
brew link isl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment