This is directly taken from https://github.com/clux/muslrust, and changed it for cross compiling to 32-bit libraries against musl. I've only needed openssl to work for i686-uknown-linux-musl target which seems to work. I've not tested other functionalities.