summaryrefslogtreecommitdiff
path: root/doc/install.html
diff options
context:
space:
mode:
authorMike Pall <mike>2011-12-15 19:16:06 +0100
committerMike Pall <mike>2011-12-15 19:16:06 +0100
commitb61be299c9fc00e8d2252fa3f12c6005686783d6 (patch)
tree0b400660908d726b60456241e0d6a0b67aa5ae5d /doc/install.html
parent6ace80c897a8359bedd3f195d126725cb0bf0f8d (diff)
downloadluajit-b61be299c9fc00e8d2252fa3f12c6005686783d6.tar.gz
luajit-b61be299c9fc00e8d2252fa3f12c6005686783d6.tar.bz2
luajit-b61be299c9fc00e8d2252fa3f12c6005686783d6.zip
Auto-detect target arch via cross-compiler. Drop TARGET=arch.
Diffstat (limited to 'doc/install.html')
-rw-r--r--doc/install.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/install.html b/doc/install.html
index 4e226d17..07c55fa6 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -355,7 +355,7 @@ EGLIBC). The <tt>CROSS</tt> prefix may vary depending on the
355<tt>--target</tt> of the toolchain: 355<tt>--target</tt> of the toolchain:
356</p> 356</p>
357<pre class="code"> 357<pre class="code">
358make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm 358make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi-
359</pre> 359</pre>
360<p> 360<p>
361You can cross-compile for <b id="android">Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>. 361You can cross-compile for <b id="android">Android (ARM)</b> using the <a href="http://developer.android.com/sdk/ndk/index.html"><span class="ext">&raquo;</span>&nbsp;Android NDK</a>.
@@ -368,7 +368,7 @@ NDKABI=8
368NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3 368NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3
369NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- 369NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
370NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" 370NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
371make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET=arm 371make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF"
372</pre> 372</pre>
373<p> 373<p>
374You 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>. 374You 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>.
@@ -387,7 +387,7 @@ ISDKVER=iPhoneOS4.3.sdk
387ISDKP=$ISDK/usr/bin/ 387ISDKP=$ISDK/usr/bin/
388ISDKF="-arch armv6 -isysroot $ISDK/SDKs/$ISDKVER" 388ISDKF="-arch armv6 -isysroot $ISDK/SDKs/$ISDKVER"
389make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ 389make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
390 TARGET=arm TARGET_SYS=iOS 390 TARGET_SYS=iOS
391</pre> 391</pre>
392<p> 392<p>
393You can cross-compile for a <b id="ppc">PPC target</b> or a 393You can cross-compile for a <b id="ppc">PPC target</b> or a
@@ -398,11 +398,11 @@ of the toolchain:
398</p> 398</p>
399<pre class="code"> 399<pre class="code">
400# PPC 400# PPC
401make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- TARGET=ppc 401make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu-
402</pre> 402</pre>
403<pre class="code"> 403<pre class="code">
404# PPC/e500v2 404# PPC/e500v2
405make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- TARGET=ppcspe 405make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe-
406</pre> 406</pre>
407<p> 407<p>
408Whenever the <b>host OS and the target OS differ</b>, you need to specify 408Whenever the <b>host OS and the target OS differ</b>, you need to specify