7

Per this response , 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 the stock toolchain.

Is this still the case in NDKr9?

Community
  • 1
  • 1
boni
  • 253
  • 4
  • 7
  • 3
    Is that error coming from the linker? See also: http://stackoverflow.com/questions/16846430/hard-float-calls-for-some-functions-in-gcc – fadden Aug 01 '13 at 23:29
  • Yes, linker error. And your link/answer shed more light on this flag. I was looking for some easy optimizations when targeting v7a, but that flag probably wouldn't have made much difference anyway. Thanks. – boni Aug 01 '13 at 23:46

1 Answers1

3

Have you tried?

APP_ABI := armeabi-v7a-hard

This seems to work in NDKr9

gus3001
  • 851
  • 9
  • 19