As said in [1], unwinder is linked automatically by Clang and shared library must not re-export it. ndk after r23 (we are using r21) should be this. Else we must take care to not re-export it. From [2], we should pass the flags `Wl,--exclude-libs,libgcc.a` and `-Wl,--exclude-libs,libunwind.a` to avoid re-export `_Unwind_Resume` methods. Fix https://github.com/kiwix/kiwix-android/issues/3661 [1] https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#Unwinding [2] https://github.com/android/ndk/issues/889#issuecomment-464334469
The target_platform option has always be wrongly named. This is not the platform we are targeted but how we compile. This was ok at beginning as specifying how we compile somehow define for what we compile but this is not a one to one mapping.