Damien has the right idea here, though if you want to do a 32-bit cross compile, you'll need to also make sure that you're linking against a 32-bit copy of OpenSSL and libiconv. It may be useful to look through our Android instructions, which is also a cross-compilation.
Robert
Robert