Skip to content

Instantly share code, notes, and snippets.

@udnaan
Last active June 24, 2024 00:54
Show Gist options
  • Save udnaan/80c5ad125fc4702309b9 to your computer and use it in GitHub Desktop.
Save udnaan/80c5ad125fc4702309b9 to your computer and use it in GitHub Desktop.
How to cross compile Openssl 1.1.0 for Windows Host on Ubuntu 14.04 LTS

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

@derunix
Copy link

derunix commented Sep 16, 2022

./Configure mingw shared --cross-compile-prefix=x86_64-w64-mingw32- --prefix=${WORKSPACE}
worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment