add advice on cross-compiling for Android
This commit is contained in:
parent
69c417e55b
commit
4e6e18119c
21
src/README
21
src/README
|
@ -301,6 +301,27 @@ Some less commonly needed `configure' flags:
|
||||||
|
|
||||||
* `--enable-bigendian', if target platform is big-endian.
|
* `--enable-bigendian', if target platform is big-endian.
|
||||||
|
|
||||||
|
========================================================================
|
||||||
|
Cross-compiling for Android
|
||||||
|
========================================================================
|
||||||
|
|
||||||
|
As an example of cross-compiling, to compile for Andriod on ARM using
|
||||||
|
the NDK, use (all on one line)
|
||||||
|
|
||||||
|
configure --host=arm-linux-androideabi
|
||||||
|
CPPFLAGS=-I[ndk]/platforms/android-[N]/arch-arm/usr/include
|
||||||
|
LDFLAGS=-L[ndk]/platforms/android-[N]/arch-arm/usr/lib
|
||||||
|
--enable-sgc
|
||||||
|
--enable-racket=racket
|
||||||
|
|
||||||
|
where [ndk] is the path to the installed NDK, [N] is a target version
|
||||||
|
of Android (such as 14), and
|
||||||
|
|
||||||
|
[ndk]/toolchains/arm-linux-androideabi-[comp]/prebuilt/[platform]/bin
|
||||||
|
|
||||||
|
is in your PATH (so that a suitable `gcc', `ar', etc., are found) for
|
||||||
|
the [comp] of your choice and the [platform] used to compile.
|
||||||
|
|
||||||
========================================================================
|
========================================================================
|
||||||
CGC versus 3m
|
CGC versus 3m
|
||||||
========================================================================
|
========================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user