Static building tor with openssl does not work
We have couple opened ticket about building OpenSSL statically: legacy/trac#31565 (moved) and legacy/trac#32871 (moved) are the one I could find.
I've been working on this to measure the size of tor as a shared library for mobile environment for which we need to build tor with openssl and libevent statically.
At current master, this is not working for build system and code reasons.
This ticket is to address it all so we can close all other related tickets.
Here is a raw tor.git diff that makes this work. There is still some think to consider especially with the OPENSSL_VERSION
:
https://gitlab.torproject.org/dgoulet/tor-library-size/blob/master/tor.diff