Building GCCSDK on Mac OS X

From RISC OS
Jump to navigationJump to search

Mac OS X provides a Unix-style environment, so building GCCSDK is broadly similar to the Linux instructions which you should also read. However the packages to be installed are different. This guide is based on Mac OS X 10.9 Mavericks - other systems may vary.

First you will need Apple's command line environment. Type 'strings' in a terminal and, if you're missing the 'strings' program, it should offer to install the tools.

This guide uses packages from the Homebrew project. Install Homebrew by following the instructions. Packages can then be installed using 'brew install packagename'. These packages are required for GCCSDK:

autoconf213
autogen
automake
coreutils
cvs
doxygen
dpkg
intltool
help2man
gperftools
mpc
mpfr2
orbit
pkg-config
svn
wget

To build, do:

export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
./build-world

in your terminal. The first line ensures GNU tools like 'cp' and 'readline' take precedence over the internal Mac OS tools (which are based on FreeBSD).