1.1 --- a/docs/C - Misc. tutorials.txt Mon Aug 22 09:38:19 2011 +0200
1.2 +++ b/docs/C - Misc. tutorials.txt Mon Aug 22 09:36:30 2011 +0200
1.3 @@ -55,7 +55,7 @@
1.4 mount somewhere.
1.5
1.6 2) Install macports (or similar easy means of installing 3rd party software),
1.7 - make sure that macport's bin dir is in your PATH.
1.8 + make sure that macport's bin dir is in the front (!) of your PATH.
1.9 Furtheron assuming it is /opt/local/bin.
1.10
1.11 3) Install (at least) the following macports
1.12 @@ -65,11 +65,25 @@
1.13 gsed
1.14 gawk
1.15 gcc43 (only necessary for Leopard OSX 10.5)
1.16 + gcc_select (only necessary for OSX 10.5, or Xcode > 4)
1.17
1.18 +4) Prerequisites
1.19 On Leopard, make sure that the macport's gcc is called with the default
1.20 - commands (gcc, g++,...), e.g. via macport gcc_select
1.21 + commands (gcc, g++,...), via macport's gcc_select
1.22
1.23 -4) run ct-ng's configure with the following tool configuration
1.24 + On OSX 10.7 Lion / when using Xcode >= 4 make sure that the default commands
1.25 + (gcc, g++, etc.) point to gcc-4.2, NOT llvm-gcc-4.2
1.26 + by using macport's gcc_select feature. With MacPorts >= 1.9.2
1.27 + the command is: "sudo port select --set gcc gcc42"
1.28 + This also requires (like written above) that macport's bin dir
1.29 + comes before standard directories in your PATH environment variable
1.30 + because the gcc symlink is installed in /opt/local/bin and the default /usr/bin/gcc
1.31 + is not removed by the gcc select command!
1.32 + Explanation: llvm-gcc-4.2 (with Xcode 4.1 it is on my machine
1.33 + "gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)")
1.34 + cannot boostrap gcc. See http://llvm.org/bugs/show_bug.cgi?id=9571
1.35 +
1.36 +5) run ct-ng's configure with the following tool configuration
1.37 (assuming you have installed the tools via macports in /opt/local):
1.38 ./configure --with-sed=/opt/local/bin/gsed \
1.39 --with-libtool=/opt/local/bin/glibtool \
1.40 @@ -79,7 +93,7 @@
1.41 --with-readelf=/opt/local/bin/greadelf \
1.42 [...other configure parameters as you like...]
1.43
1.44 -5) proceed as described in standard documentation
1.45 +6) proceed as described in standard documentation
1.46
1.47 -----
1.48