Armeabi-v7a with -mfloat-abi = hard

Per this answer , I tried to build using the -mfloat-abi=hard flag. In Application.mk I have

 APP_ABI := armeabi-v7a APP_CFLAGS += -mfloat-abi=hard 

and got this error

 error: ./obj/local/armeabi-v7a/objs/XXX.o uses VFP register arguments, output does not 

I found this link where someone posted that -mfloat-abi = hard does not work with a stock Toolbox.

Is this still the case in NDKr9?

+7
android android-ndk armv7
source share
1 answer

You tried?

 APP_ABI := armeabi-v7a-hard 

It seems to work in NDKr9

+3
source share

All Articles