diff options
author | Mike Pall <mike> | 2011-12-15 19:16:06 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-12-15 19:16:06 +0100 |
commit | b61be299c9fc00e8d2252fa3f12c6005686783d6 (patch) | |
tree | 0b400660908d726b60456241e0d6a0b67aa5ae5d /doc/install.html | |
parent | 6ace80c897a8359bedd3f195d126725cb0bf0f8d (diff) | |
download | luajit-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.html | 10 |
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"> |
358 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- TARGET=arm | 358 | make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- |
359 | </pre> | 359 | </pre> |
360 | <p> | 360 | <p> |
361 | You 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">»</span> Android NDK</a>. | 361 | You 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">»</span> Android NDK</a>. |
@@ -368,7 +368,7 @@ NDKABI=8 | |||
368 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3 | 368 | NDKVER=$NDK/toolchains/arm-linux-androideabi-4.4.3 |
369 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- | 369 | NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi- |
370 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" | 370 | NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm" |
371 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET=arm | 371 | make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" |
372 | </pre> | 372 | </pre> |
373 | <p> | 373 | <p> |
374 | You 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">»</span> iOS SDK</a>. | 374 | You 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">»</span> iOS SDK</a>. |
@@ -387,7 +387,7 @@ ISDKVER=iPhoneOS4.3.sdk | |||
387 | ISDKP=$ISDK/usr/bin/ | 387 | ISDKP=$ISDK/usr/bin/ |
388 | ISDKF="-arch armv6 -isysroot $ISDK/SDKs/$ISDKVER" | 388 | ISDKF="-arch armv6 -isysroot $ISDK/SDKs/$ISDKVER" |
389 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ | 389 | make 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> |
393 | You can cross-compile for a <b id="ppc">PPC target</b> or a | 393 | You 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 |
401 | make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- TARGET=ppc | 401 | make 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 |
405 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- TARGET=ppcspe | 405 | make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- |
406 | </pre> | 406 | </pre> |
407 | <p> | 407 | <p> |
408 | Whenever the <b>host OS and the target OS differ</b>, you need to specify | 408 | Whenever the <b>host OS and the target OS differ</b>, you need to specify |