ndktest
annotate README @ 0:1310df7cdf25
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 23 Apr 2015 20:54:02 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 Setup instructions |
nuclear@0 | 2 ------------------ |
nuclear@0 | 3 $NDK/build/tools/make-standalone-toolchain.sh \ |
nuclear@0 | 4 --platform=android-21 --arch=arm \ |
nuclear@0 | 5 --install-dir=$HOME/devel/ndk-toolchain |
nuclear@0 | 6 |
nuclear@0 | 7 export PATH=$HOME/devel/ndk-toolchain/bin |
nuclear@0 | 8 export CC=arm-linux-androideabi-gcc |
nuclear@0 | 9 |
nuclear@0 | 10 * use -mthumb (so says the doc) |
nuclear@0 | 11 * use LDFLAGS -Wl,--fix-cortex-a8 |
nuclear@0 | 12 * use LDFLAGS -lstdc++ to statically link the GNU C++ library |
nuclear@0 | 13 * for armeabi-v7a ABI: -march=armv7-a -mfloat-abi=softfp |
nuclear@0 | 14 * for neon: -march=arm7-a -mfloat-abi=softfp -mfpu=neon |