Skip to content

Instantly share code, notes, and snippets.

@DavidPu
Last active November 20, 2021 18:52
Show Gist options
  • Select an option

  • Save DavidPu/9a0cf17f3dc1544f11172a1fb11609d6 to your computer and use it in GitHub Desktop.

Select an option

Save DavidPu/9a0cf17f3dc1544f11172a1fb11609d6 to your computer and use it in GitHub Desktop.
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
tar pxf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l
sudo aptitude install gcc-mingw-w64 gcc-mingw-w64-i686
sudo ln -s /usr/bin/x86_64-w64-mingw32-windres /usr/bin/windres
./Configure --prefix=$PWD/dist no-idea no-mdc2 no-rc5 shared mingw
sed -i 's|RCFLAGS=.*|RCFLAGS= --target=pe-i386 -I/usr/i686-w64-mingw32/include -D_WIN32|g' Makefile
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment