This requires the git version of crosstool-ng, at least if you want to build for m68k, since it’s not released in the 1.26.0 version.
-
Install
crosstool-ng
. -
Move to the directory containing the
crosstool-ng
config of your choice:cd m68k-unknown-linux-gnu
-
Generate the config from the default config:
ct-ng defconfig
. This will generate a.config
file used in the next step. -
Build the compiler:
ct-ng build
. -
The compiler will be in
$HOME/x-tools/m68k-unknown-linux-gnu/bin
.