docs/README.macos.txt
changeset 1971 cbe89e8dfc9c
child 1987 c7c1e027fba2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docs/README.macos.txt	Tue May 25 18:25:11 2010 +0200
     1.3 @@ -0,0 +1,39 @@
     1.4 +22 May 2010 - Titus
     1.5 +
     1.6 +Prerequisites and instructions for using crosstool-NG for building a cross
     1.7 +toolchain on MacOS as host.
     1.8 +
     1.9 +0) Mac OS Snow Leopard, with Developer Tools 3.2 installed, or
    1.10 +   Mac OS Leopard, with Developer Tools & newer gcc (>= 4.3) installed
    1.11 +   via macports
    1.12 +
    1.13 +1) You have to use a case sensitive file system for ct-ng's build and target
    1.14 +   directories. Use a disk or disk image with a case sensitive fs that you
    1.15 +   mount somewhere.
    1.16 +
    1.17 +2) Install macports (or similar easy means of installing 3rd party software),
    1.18 +   make sure that macport's bin dir is in your PATH.
    1.19 +   Furtheron assuming it is /opt/local/bin.
    1.20 +
    1.21 +3) Install (at least) the following macports
    1.22 +   ncurses
    1.23 +   lzmautils
    1.24 +   libtool
    1.25 +   binutils
    1.26 +   gsed
    1.27 +   gawk
    1.28 +   gcc43 (only necessary for Leopard OSX 10.5)
    1.29 +
    1.30 +   On Leopard, make sure that the macport's gcc is called with the default
    1.31 +   commands (gcc, g++,...), e.g. via macport gcc_select
    1.32 +
    1.33 +4) run ct-ng's configure with the following tool configuration
    1.34 +   (assuming you have installed the tools via macports in /opt/local):
    1.35 +   ./configure --with-sed=/opt/local/bin/gsed           \
    1.36 +               --with-libtool=/opt/local/bin/glibtool   \
    1.37 +               --with-objcopy=/opt/local/bin/gobjcopy   \
    1.38 +               --with-objdump=/opt/local/bin/gobjdump   \
    1.39 +               --with-readelf=/opt/local/bin/greadelf   \
    1.40 +               [...other configure parameters as you like...]
    1.41 +
    1.42 +5) proceed as described in standard documentation