armeabi-v7a with -mfloat-abi=hard
Asked Answered
P

1

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?

Paraglider answered 1/8, 2013 at 22:11 Comment(2)
Is that error coming from the linker? See also: #16846930Madame
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.Paraglider
R
3

Have you tried?

APP_ABI := armeabi-v7a-hard

This seems to work in NDKr9

Roughhew answered 16/4, 2014 at 19:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.