ndktest
annotate README @ 1:fe78cf853157
fixed the build files
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 24 Apr 2015 03:20:17 +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 |