The previous refactoring commit 841f289 changed that command by
prepending relative path to the libs files, and that seem to break
what we try to achieve with patchelf. This reverts that part.
If building for an OpenSSL version that doesn't start with 3.1.x, like
3.0.7, the script fails to set ANDROID_API value and the build fails.
This makes the script more inclusive for other OpenSSL 3.x.x versions.
* Refactor the build script to be more readable by using funcitons
* Forward configure and build output to log files
* Add more progress messages and print only stderr to the
console while building
* Build Openssl 1.1 for API 21 and OpenSSL 3.1 for 23
* Tested the script on macOS (needs bash version 4+)
- Nuke the support for super old Qt versions
- Simplify a lot openssl.pri and CMakeLists.txt
- Use latest OpenSSL 1.1.1 version
- Add OpenSSL 3.x support needed for Qt 6.5
Close: #25, #36, #37, #39
_1_1 suffix is needed for Android API-21 because if the user tries to load
libssl.so/libcrypto.so it will load the system ones which are actually OpenSSL 1.0