diff -r 5d4e91c0343e -r 47199f966983 docs/5 - Using the toolchain.txt --- a/docs/5 - Using the toolchain.txt Sun Jul 17 16:53:40 2011 +0200 +++ b/docs/5 - Using the toolchain.txt Sun Oct 16 15:10:29 2011 +0200 @@ -11,15 +11,20 @@ your PATH, such as: export PATH="${PATH}:/your/toolchain/path/bin" -and then using the target tuple to tell the build systems to use your -toolchain: - ./configure --target=your-target-tuple +and then using the '--host' tuple to tell the build systems to use your +toolchain (if the software package uses the autotools system you should +also pass --build, for completeness): + ./configure --host=your-host-tuple --build=your-build-tuple or - make CC=your-target-tuple-gcc + make CC=your-host-tuple-gcc or - make CROSS_COMPILE=your-target-tuple- + make CROSS_COMPILE=your-host-tuple- and so on... +(Note: in the above example, 'host' refers to the host of your program, +not the host of the toolchain; and 'build' refers to the machine where +you build your program, that is the host of the toolchain.) + It is strongly advised not to use the toolchain sysroot directory as an install directory for your programs/packages. If you do so, you will not be able to use your toolchain for another project. It is even strongly advised