Cross Development Tools
If you've ever tried compiling a kernel on your 68k Mac, you probably realized that it could take days to accomplish anything meaningful. Fortunately, there is a cross-compiler available for Intel x86 here. There is no cross-compiler for PPC available at this time. Please see the FAQ for some more information on what you should do.
If you want a newer version of gcc, you'll have to compile it yourself. There are some good HOWTO's out there on cross-compiling, or you can take a look at the FAQ.
Getting the cross-compiler
If you are running Linux/ix86 and would like to use pre-built binaries, go to the file release page and download the files in the Cross-Compilers package.
If you are running Debian GNU/Linux and would like to build your own cross-development tools, try the Emdebian Cross Toolchains document.
If you are running a Linux distribution other than Debian (or another UNIX-like operation system), try
crosstool.
Installing
We suggest you install the cross-compiler tools somewhere else than in /usr, as you may end up overwriting certain files you do not want to lose. We won't be responsible if you do. We warned you. Installing the packages in your home directory and setting the various environment variables (e.g. $PATH) might be a good idea.
Start Hacking!
Download the Linux/m68k source code and patches for the Macintosh port, then start compiling! Use make ARCH=m68k when making all targets. See the FAQ for details on getting the source.
Notes
If you decide to compile a cross-compiler yourself, please note that GCC 2.95.2 has been reported to miscompile some things. Most of these issues have been worked out, however; I use GCC 2.95.2 with few problems.
|