(optionally apply openssl-1.1-crypto-init-win9x.diff
)
You may need to disable /WX
in Configurations/10-main.conf
before running Configure,
just remove the line:
CFLAGS => add("/WX"),
then
perl Configure VC-WIN32 no-shared no-pinshared no-dynamic-engine no-capieng no-async --prefix=C:\Work\Clamav\openssl\win32\build
Add -D_WIN32_WINNT=0x0501
for backward compatibility.
:: Optional for multicore build
set CL=/MP
nmake install_dev
perl Configure VC-WIN64A no-shared no-pinshared no-dynamic-engine no-capieng no-async --prefix=C:\Work\Clamav\openssl\x64\build
:: Optional for multicore build
set CL=/MP
nmake install_dev
(optionally apply openssl-1.1-crypto-init-win9x.diff
and openssl-1.1-mingw-wspiapi.diff
)
./Configure mingw no-shared no-pinshared no-dynamic-engine no-capieng no-async --cross-compile-prefix=i686-w64-mingw32- --prefix=`pwd`/../dist
make -jX
make install_dev
./Configure mingw64 no-shared no-pinshared no-dynamic-engine no-capieng no-async --cross-compile-prefix=x86_64-w64-mingw32- --prefix=`pwd`/../dist64
make -jX
make install_dev