Install mingw tools on linux:
sudo apt-get install mingw-w64
clone openssl repo:
git clone https://github.com/openssl/openssl.git
Configure openssl for cross compile:
./Configure --cross-compile-prefix=x86_64-w64-mingw32- mingw64
make
Install mingw tools on linux:
sudo apt-get install mingw-w64
clone openssl repo:
git clone https://github.com/openssl/openssl.git
Configure openssl for cross compile:
./Configure --cross-compile-prefix=x86_64-w64-mingw32- mingw64
make
./Configure mingw shared --cross-compile-prefix=x86_64-w64-mingw32- --prefix=${WORKSPACE}
worked for me
Note if you want 32-bit binaries you need to set the target to
mingw
and change to the i686 compiler. In other words:./Configure --cross-compile-prefix=i686-w64-mingw32- mingw