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