3 Prerequisites and instructions for using crosstool-NG for building a cross
4 toolchain on MacOS as host.
6 0) Mac OS Snow Leopard, with Developer Tools 3.2 installed, or
7 Mac OS Leopard, with Developer Tools & newer gcc (>= 4.3) installed
10 1) You have to use a case sensitive file system for ct-ng's build and target
11 directories. Use a disk or disk image with a case sensitive fs that you
14 2) Install macports (or similar easy means of installing 3rd party software),
15 make sure that macport's bin dir is in your PATH.
16 Furtheron assuming it is /opt/local/bin.
18 3) Install (at least) the following macports
25 gcc43 (only necessary for Leopard OSX 10.5)
27 On Leopard, make sure that the macport's gcc is called with the default
28 commands (gcc, g++,...), e.g. via macport gcc_select
30 4) run ct-ng's configure with the following tool configuration
31 (assuming you have installed the tools via macports in /opt/local):
32 ./configure --with-sed=/opt/local/bin/gsed \
33 --with-libtool=/opt/local/bin/glibtool \
34 --with-objcopy=/opt/local/bin/gobjcopy \
35 --with-objdump=/opt/local/bin/gobjdump \
36 --with-readelf=/opt/local/bin/greadelf \
37 [...other configure parameters as you like...]
39 5) proceed as described in standard documentation
44 - Apparently, GNU make's builtin variable .LIBPATTERNS is misconfigured
45 under MacOS: It does not include lib%.dylib.
46 This affects build of (at least) gdb-7.1
47 Put 'lib%.a lib%.so lib%.dylib' as .LIBPATTERNS into your environment
48 before executing ct-ng build.
49 See http://www.gnu.org/software/make/manual/html_node/Libraries_002fSearch.html