titus@1971: 22 May 2010 - Titus titus@1971: titus@1971: Prerequisites and instructions for using crosstool-NG for building a cross titus@1971: toolchain on MacOS as host. titus@1971: titus@1971: 0) Mac OS Snow Leopard, with Developer Tools 3.2 installed, or titus@1971: Mac OS Leopard, with Developer Tools & newer gcc (>= 4.3) installed titus@1971: via macports titus@1971: titus@1971: 1) You have to use a case sensitive file system for ct-ng's build and target titus@1971: directories. Use a disk or disk image with a case sensitive fs that you titus@1971: mount somewhere. titus@1971: titus@1971: 2) Install macports (or similar easy means of installing 3rd party software), titus@1971: make sure that macport's bin dir is in your PATH. titus@1971: Furtheron assuming it is /opt/local/bin. titus@1971: titus@1971: 3) Install (at least) the following macports titus@1971: ncurses titus@1971: lzmautils titus@1971: libtool titus@1971: binutils titus@1971: gsed titus@1971: gawk titus@1971: gcc43 (only necessary for Leopard OSX 10.5) titus@1971: titus@1971: On Leopard, make sure that the macport's gcc is called with the default titus@1971: commands (gcc, g++,...), e.g. via macport gcc_select titus@1971: titus@1971: 4) run ct-ng's configure with the following tool configuration titus@1971: (assuming you have installed the tools via macports in /opt/local): titus@1971: ./configure --with-sed=/opt/local/bin/gsed \ titus@1971: --with-libtool=/opt/local/bin/glibtool \ titus@1971: --with-objcopy=/opt/local/bin/gobjcopy \ titus@1971: --with-objdump=/opt/local/bin/gobjdump \ titus@1971: --with-readelf=/opt/local/bin/greadelf \ titus@1971: [...other configure parameters as you like...] titus@1971: titus@1971: 5) proceed as described in standard documentation titus@1987: titus@1987: ----- titus@1987: titus@1987: HINTS: titus@1987: - Apparently, GNU make's builtin variable .LIBPATTERNS is misconfigured titus@1987: under MacOS: It does not include lib%.dylib. titus@1987: This affects build of (at least) gdb-7.1 titus@1987: Put 'lib%.a lib%.so lib%.dylib' as .LIBPATTERNS into your environment titus@1987: before executing ct-ng build. titus@1987: See http://www.gnu.org/software/make/manual/html_node/Libraries_002fSearch.html titus@1987: as an explanation.