Make sure JNI_OnLoad is not called more than once


Since Android 5.0 Google introduce a nasty bug[1] which calls
JNI_OnLoad more than once.
Basically every time when a library is loaded JNI_OnLoad is
called if found, but it calls *again* JNI_OnLoad of its .so
dependencies!

[1] Workaround https://code.google.com/p/android/issues/detail?id=215069

Change-Id: I0401553f80c10b14b837a96dc979d0e7341396ea
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitfc30c6d011f705ae8b56f8703757be0d7375e1bf
parentccaaa0f9d0268142f3678476655562cb5eb1dfef
authorBogDan Vatra <bogdan@kdab.com>
committerBogDan Vatra <bogdan@kdab.com>
commit timeWed, 20 Jul 2016 13:04:09 +0000