Issue
for some reason,my project use Jam to build my JNI code. we set the toolchains in NDK(currently we are using r10e) in our jam build system, which in end build out the SO file we need. although it worked, but we are worrying we are not use the most correct/optimized flag. i do some research and guess 'ndk-build' by default will use following flag for release. is it correct? please let me know the correct flag. many thanks.
-fwrapv -O3 -Wall -Wstrict-prototypes
also, we just find that the math::pow(double,double) always return -0.0 on some device. it will be appreciated if you can give some comments.
Solution
Next time when you see some weird results (or error messages, or unexpected warnings) from Android NDK, don't underestimate the power of
ndk-build V=1
This will echo all actual compilation commands being used.
Answered By - Alex Cohn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.