openssl: linkage step fails on x86 architecture
Submitted by Tadas
Link to original bug (#797042)
Description
Linkage step fails on x86 architecture when building using CMake on Android Studio:
/home/tadas/Android/Gstreamer/1.14.2/x86/lib/libssl.a /home/tadas/Android/Gstreamer/1.14.2/x86/lib/libcrypto.a -latomic -lm && :
/home/tadas/Android/Sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: warning: shared library text segment is not shareable
/home/tadas/Android/Sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin/ld: error: treating warnings as errors
If this warning is ignored while building, Android OS fails to load library, because of this: https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23
Builds fine on armv7 architecture. The solution is that OpenSSL must be compiled with "no-asm" flag.
Version: 1.14.2