From ca18293ebc80d83ba32737d308c6a8e7a526174d Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 18 Apr 2011 17:20:59 +0200 Subject: [PATCH] Add remark about target OS to cross-compilation instructions. --- doc/install.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/install.html b/doc/install.html index b43c472e..12f28d4f 100644 --- a/doc/install.html +++ b/doc/install.html @@ -102,9 +102,9 @@ operating system, CPU and compilers: - - + + @@ -117,21 +117,21 @@ operating system, CPU and compilers: - + - + - + @@ -342,6 +342,14 @@ installing the mingw32 package and running: make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows

+Whenever the host OS and the target OS differ, you need to specify +TARGET_SYS or you'll get assembler or linker errors. E.g. if +you're compiling on a Windows or OSX host for embedded Linux or Android, +you need to add TARGET_SYS=Linux to the examples below. For a +minimal target OS, you may need to disable the built-in allocator in +src/Makefile and use TARGET_SYS=Other. +

+

You can cross-compile for an ARM target on an x86 or x64 host system using a standard GNU cross-compile toolchain (Binutils, GCC, EGLIBC). The CROSS prefix may vary depending on the

CPU / OSLinux
or Android
OSX
10.3-10.6
Linux or
Android
*BSD, otherOSX
10.3-10.6
Windows
98/XP/Vista/7
x64 (64 bit) GCC 4.xGCC 4.x  GCC 4.x MSVC + SDK v7.0
WinSDK v7.0
ARM GCC 4.3+ GCC 4.3+    
PPC/e500v2 GCC 4.3+ GCC 4.3+