The source project of this merge request has been removed.
Fix find_library on Android with NDK < 22
Otherwise find_library
can find a static .a
file instead of the correct .so
, leading to linker errors.
[ 22%] Linking CXX shared library bin/libOkular5Core_arm64-v8a.so
/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libz.a(gzwrite.o): In function `write(int, void const*, unsigned long pass_object_size0)':
bionic/libc/include/bits/fortify/unistd.h:174: undefined reference to `__write_chk'
bionic/libc/include/bits/fortify/unistd.h:174: undefined reference to `__write_chk'