On Wed, 18 Dec 2013, Niels Möller wrote:
Nikos Mavrogiannopoulos nmav@gnutls.org writes:
I tried to use the android NDK on nettle and the cpu detected was simply 'arm'.
You could configure with something like
--host=armv6-linux-androideabi CC="arm-linux-androideabi -march=armv6t2"
No idea how much problems, if any, that will cause for real android devices.
But it seems fairly common that android apps are compiled for newer processors only (if they include native code at all), e.g., I think the firefox app I got from f-droid is armv7 only.
Yes - there's two separate ABIs that they support automatically, ARMv5 and ARMv7 (without neon) - you can build two separate versions of your library and the device will install the right one (and use the v5 one on v7 if there's no v7 specific binary). Since there are ARMv7 devices without neon, those features would have to be enabled at runtime though.
// Martin