Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude libgcc and libunwind from linked library on Android.
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 kiwix/kiwix-android#3661 [1] https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#Unwinding [2] android/ndk#889 (comment)
- Loading branch information