aboutsummaryrefslogtreecommitdiff
path: root/doc/install.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/install.html15
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/install.html b/doc/install.html
index efeda33c..230e9386 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -175,6 +175,14 @@ MSVC or WinSDK.</li>
175Please read the instructions given in these files, before changing 175Please read the instructions given in these files, before changing
176any settings. 176any settings.
177</p> 177</p>
178<p>
179LuaJIT on x64 currently uses 32 bit GC objects by default.
180<tt>LJ_GC64</tt> mode may be explicitly enabled:
181add <tt>XCFLAGS=-DLUAJIT_ENABLE_GC64</tt> to the make command or run
182<tt>msvcbuild gc64</tt> for MSVC/WinSDK. Please check the note
183about the <a href="extensions.html#string_dump">bytecode format</a>
184differences, too.
185</p>
178 186
179<h2 id="posix">POSIX Systems (Linux, OSX, *BSD etc.)</h2> 187<h2 id="posix">POSIX Systems (Linux, OSX, *BSD etc.)</h2>
180<h3>Prerequisites</h3> 188<h3>Prerequisites</h3>
@@ -584,14 +592,11 @@ intend to load Lua/C modules at runtime.
584</li> 592</li>
585<li> 593<li>
586If you're building a 64 bit application on OSX which links directly or 594If you're building a 64 bit application on OSX which links directly or
587indirectly against LuaJIT, you need to link your main executable 595indirectly against LuaJIT which is not built for <tt>LJ_GC64</tt> mode,
588with these flags: 596you need to link your main executable with these flags:
589<pre class="code"> 597<pre class="code">
590-pagezero_size 10000 -image_base 100000000 598-pagezero_size 10000 -image_base 100000000
591</pre> 599</pre>
592Also, it's recommended to <tt>rebase</tt> all (self-compiled) shared libraries
593which are loaded at runtime on OSX/x64 (e.g. C extension modules for Lua).
594See: <tt>man rebase</tt>
595</li> 600</li>
596</ul> 601</ul>
597<p>Additional hints for initializing LuaJIT using the C API functions:</p> 602<p>Additional hints for initializing LuaJIT using the C API functions:</p>