Build Erlang like static library for iOS/Android. How?

Usually using precompiled OpenSSL linked like static library for mobile development. Already have template CMake project within precompiled OpenSSL that needs to be just linked for iOS/Android. Using OpenSSL 3.5 LTS. Always trying to use LTS version for any kind of application.