aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/extensions.html4
-rw-r--r--doc/install.html68
2 files changed, 24 insertions, 48 deletions
diff --git a/doc/extensions.html b/doc/extensions.html
index 7379041d..6d3518ea 100644
--- a/doc/extensions.html
+++ b/doc/extensions.html
@@ -253,6 +253,10 @@ for every call. The result is uniformly distributed between 0.0 and 1.0.
253It's correctly scaled up and rounded for <tt>math.random(n&nbsp;[,m])</tt> to 253It's correctly scaled up and rounded for <tt>math.random(n&nbsp;[,m])</tt> to
254preserve uniformity. 254preserve uniformity.
255</p> 255</p>
256<p>
257Important: Neither this nor any other PRNG based on the simplistic
258<tt>math.random()</tt> API is suitable for cryptographic use.
259</p>
256 260
257<h3 id="io"><tt>io.*</tt> functions handle 64&nbsp;bit file offsets</h3> 261<h3 id="io"><tt>io.*</tt> functions handle 64&nbsp;bit file offsets</h3>
258<p> 262<p>
diff --git a/doc/install.html b/doc/install.html
index 700d6edf..da350b9c 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -394,52 +394,31 @@ make CROSS=mips-linux- TARGET_CFLAGS="-mips64r2 -mabi=64"
394make CROSS=mipsel-linux- TARGET_CFLAGS="-mips64r2 -mabi=64" 394make CROSS=mipsel-linux- TARGET_CFLAGS="-mips64r2 -mabi=64"
395</pre> 395</pre>
396<p> 396<p>
397You can cross-compile for <b id="android">Android</b> using the <a href="https://developer.android.com/ndk/index.html">Android NDK</a>. 397You can cross-compile for <b id="android">Android</b> using the <a href="http://developer.android.com/ndk/"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>.
398The environment variables need to match the install locations and the 398Please adapt the environment variables to match the install locations and the
399desired target platform. E.g. Android&nbsp;4.0 corresponds to ABI level&nbsp;14. 399desired target platform. E.g. Android&nbsp;4.1 corresponds to ABI level&nbsp;16.
400For details check the folder <tt>docs</tt> in the NDK directory.
401</p>
402<p>
403Only a few common variations for the different CPUs, ABIs and platforms
404are listed. Please use your own judgement for which combination you want
405to build/deploy or which lowest common denominator you want to pick:
406</p> 400</p>
407<pre class="code"> 401<pre class="code">
408# Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo) 402# Android/ARM64, aarch64, Android 5.0+ (L)
409NDK=/opt/android/ndk 403NDKDIR=/opt/android/ndk
410NDKABI=8 404NDKBIN=$NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin
411NDKVER=$NDK/toolchains/arm-linux-androideabi-4.9 405NDKCROSS=$NDKBIN/aarch64-linux-android-
412NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- 406NDKCC=$NDKBIN/aarch64-linux-android21-clang
413NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" 407make CROSS=$NDKCROSS \
414make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" 408 STATIC_CC=$NDKCC DYNAMIC_CC="$NDKCC -fPIC" \
415 409 TARGET_LD=$NDKCC
416# Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.0+ (ICS)
417NDK=/opt/android/ndk
418NDKABI=14
419NDKVER=$NDK/toolchains/arm-linux-androideabi-4.9
420NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
421NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
422NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
423make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
424
425# Android/MIPS, mipsel (MIPS32R1 hard-float), Android 4.0+ (ICS)
426NDK=/opt/android/ndk
427NDKABI=14
428NDKVER=$NDK/toolchains/mipsel-linux-android-4.9
429NDKP=$NDKVER/prebuilt/linux-x86/bin/mipsel-linux-android-
430NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-mips"
431make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
432 410
433# Android/x86, x86 (i686 SSE3), Android 4.0+ (ICS) 411# Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.1+ (JB)
434NDK=/opt/android/ndk 412NDKDIR=/opt/android/ndk
435NDKABI=14 413NDKBIN=$NDKDIR/toolchains/llvm/prebuilt/linux-x86_64/bin
436NDKVER=$NDK/toolchains/x86-4.9 414NDKCROSS=$NDKBIN/arm-linux-androideabi-
437NDKP=$NDKVER/prebuilt/linux-x86/bin/i686-linux-android- 415NDKCC=$NDKBIN/armv7a-linux-androideabi16-clang
438NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-x86" 416make HOST_CC="gcc -m32" CROSS=$NDKCROSS \
439make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" 417 STATIC_CC=$NDKCC DYNAMIC_CC="$NDKCC -fPIC" \
418 TARGET_LD=$NDKCC
440</pre> 419</pre>
441<p> 420<p>
442You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/devcenter/ios/index.action"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>: 421You can cross-compile for <b id="ios">iOS 3.0+</b> (iPhone/iPad) using the <a href="http://developer.apple.com/ios/"><span class="ext">&raquo;</span>&nbsp;iOS SDK</a>:
443</p> 422</p>
444<p style="font-size: 8pt;"> 423<p style="font-size: 8pt;">
445Note: <b>the JIT compiler is disabled for iOS</b>, because regular iOS Apps 424Note: <b>the JIT compiler is disabled for iOS</b>, because regular iOS Apps
@@ -449,13 +428,6 @@ much slower than the JIT compiler. Please complain to Apple, not me.
449Or use Android. :-p 428Or use Android. :-p
450</p> 429</p>
451<pre class="code"> 430<pre class="code">
452# iOS/ARM (32 bit)
453ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
454ICC=$(xcrun --sdk iphoneos --find clang)
455ISDKF="-arch armv7 -isysroot $ISDKP"
456make DEFAULT_CC=clang HOST_CC="clang -m32 -arch i386" \
457 CROSS="$(dirname $ICC)/" TARGET_FLAGS="$ISDKF" TARGET_SYS=iOS
458
459# iOS/ARM64 431# iOS/ARM64
460ISDKP=$(xcrun --sdk iphoneos --show-sdk-path) 432ISDKP=$(xcrun --sdk iphoneos --show-sdk-path)
461ICC=$(xcrun --sdk iphoneos --find clang) 433ICC=$(xcrun --sdk iphoneos --find clang)