diff options
| author | Mike Pall <mike> | 2011-04-18 17:20:59 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2011-04-18 17:20:59 +0200 |
| commit | ca18293ebc80d83ba32737d308c6a8e7a526174d (patch) | |
| tree | 4c4bffe70218bd408ba7f952cb2b6eef8d7b1f87 /doc/install.html | |
| parent | b53ca064d4ffba1f697ff953aeb6d0108859840f (diff) | |
| download | luajit-ca18293ebc80d83ba32737d308c6a8e7a526174d.tar.gz luajit-ca18293ebc80d83ba32737d308c6a8e7a526174d.tar.bz2 luajit-ca18293ebc80d83ba32737d308c6a8e7a526174d.zip | |
Add remark about target OS to cross-compilation instructions.
Diffstat (limited to 'doc/install.html')
| -rw-r--r-- | doc/install.html | 18 |
1 files 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: | |||
| 102 | <table class="compat"> | 102 | <table class="compat"> |
| 103 | <tr class="compathead"> | 103 | <tr class="compathead"> |
| 104 | <td class="compatcpu">CPU / OS</td> | 104 | <td class="compatcpu">CPU / OS</td> |
| 105 | <td class="compatos"><a href="#posix">Linux</a><br><a href="#cross">or Android</a></td> | 105 | <td class="compatos"><a href="#posix">Linux</a> or<br><a href="#cross">Android</a></td> |
| 106 | <td class="compatos"><a href="#posix">OSX<br>10.3-10.6</a></td> | ||
| 107 | <td class="compatos"><a href="#posix">*BSD, other</a></td> | 106 | <td class="compatos"><a href="#posix">*BSD, other</a></td> |
| 107 | <td class="compatos"><a href="#posix">OSX<br>10.3-10.6</a></td> | ||
| 108 | <td class="compatos"><a href="#windows">Windows<br>98/XP/Vista/7</a></td> | 108 | <td class="compatos"><a href="#windows">Windows<br>98/XP/Vista/7</a></td> |
| 109 | </tr> | 109 | </tr> |
| 110 | <tr class="odd separate"> | 110 | <tr class="odd separate"> |
| @@ -117,21 +117,21 @@ operating system, CPU and compilers: | |||
| 117 | <tr class="even"> | 117 | <tr class="even"> |
| 118 | <td class="compatcpu">x64 (64 bit)</td> | 118 | <td class="compatcpu">x64 (64 bit)</td> |
| 119 | <td class="compatos">GCC 4.x</td> | 119 | <td class="compatos">GCC 4.x</td> |
| 120 | <td class="compatos">GCC 4.x</td> | ||
| 121 | <td class="compatos compatno"> </td> | 120 | <td class="compatos compatno"> </td> |
| 121 | <td class="compatos">GCC 4.x</td> | ||
| 122 | <td class="compatos">MSVC + SDK v7.0<br>WinSDK v7.0</td> | 122 | <td class="compatos">MSVC + SDK v7.0<br>WinSDK v7.0</td> |
| 123 | </tr> | 123 | </tr> |
| 124 | <tr class="odd"> | 124 | <tr class="odd"> |
| 125 | <td class="compatcpu">ARM</td> | 125 | <td class="compatcpu">ARM</td> |
| 126 | <td class="compatos">GCC 4.3+</td> | 126 | <td class="compatos">GCC 4.3+</td> |
| 127 | <td class="compatos compatno"> </td> | 127 | <td class="compatos">GCC 4.3+</td> |
| 128 | <td class="compatos compatno"> </td> | 128 | <td class="compatos compatno"> </td> |
| 129 | <td class="compatos compatno"> </td> | 129 | <td class="compatos compatno"> </td> |
| 130 | </tr> | 130 | </tr> |
| 131 | <tr class="even"> | 131 | <tr class="even"> |
| 132 | <td class="compatcpu">PPC/e500v2</td> | 132 | <td class="compatcpu">PPC/e500v2</td> |
| 133 | <td class="compatos">GCC 4.3+</td> | 133 | <td class="compatos">GCC 4.3+</td> |
| 134 | <td class="compatos compatno"> </td> | 134 | <td class="compatos">GCC 4.3+</td> |
| 135 | <td class="compatos compatno"> </td> | 135 | <td class="compatos compatno"> </td> |
| 136 | <td class="compatos compatno"> </td> | 136 | <td class="compatos compatno"> </td> |
| 137 | </tr> | 137 | </tr> |
| @@ -342,6 +342,14 @@ installing the <tt>mingw32</tt> package and running: | |||
| 342 | make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows | 342 | make HOST_CC="gcc -m32" CROSS=i586-mingw32msvc- TARGET_SYS=Windows |
| 343 | </pre> | 343 | </pre> |
| 344 | <p> | 344 | <p> |
| 345 | Whenever the <b>host OS and the target OS differ</b>, you need to specify | ||
| 346 | <tt>TARGET_SYS</tt> or you'll get assembler or linker errors. E.g. if | ||
| 347 | you're compiling on a Windows or OSX host for embedded Linux or Android, | ||
| 348 | you need to add <tt>TARGET_SYS=Linux</tt> to the examples below. For a | ||
| 349 | minimal target OS, you may need to disable the built-in allocator in | ||
| 350 | <tt>src/Makefile</tt> and use <tt>TARGET_SYS=Other</tt>. | ||
| 351 | </p> | ||
| 352 | <p> | ||
| 345 | You can cross-compile for an <b>ARM target</b> on an x86 or x64 host | 353 | You can cross-compile for an <b>ARM target</b> on an x86 or x64 host |
| 346 | system using a standard GNU cross-compile toolchain (Binutils, GCC, | 354 | system using a standard GNU cross-compile toolchain (Binutils, GCC, |
| 347 | EGLIBC). The <tt>CROSS</tt> prefix may vary depending on the | 355 | EGLIBC). The <tt>CROSS</tt> prefix may vary depending on the |
