Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:: See file: INSTALL
:: See file: INSTALL.W64
:: Note: rename openssl.exe -> openssl64.exe
:: Note: rename libeay32.lib -> libeay64.lib
:: Note: rename ssleay32.lib -> ssleay64.lib
:: Edit: \util\pl\VC-32.pl
:: 1) if ($FLAVOR =~ /WIN64/) ... $lflags="/nologo /subsystem:console /opt:ref"
:: /subsystem:console -> /subsystem:console,5.02
:: 2) else # Win32 ... $lflags="/nologo /subsystem:console /opt:ref"
:: /subsystem:console -> /subsystem:console,5.01
::
:: INIT XP x64 TOOLCHAIN
::
set SDK71PATH=%ProgramFiles%\Microsoft SDKs\Windows\7.1A
path %SDK71PATH%\Bin\x64;%PATH%
set INCLUDE=%SDK71PATH%\Include;%INCLUDE%
set LIB=%SDK71PATH%\Lib\x64;%LIB%
::
:: INIT VC++2015 x64
::
:: VS140COMNTOOLS_in_VS2017_fix.reg
:: https://gist.github.com/Ruzzz/38dc70f4b850dd5e379f8cfa2cbf09a3
if not exist "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat" goto :ERROR
call "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat"
if ERRORLEVEL 1 goto :ERROR
::
:: BUILD
::
set __OPENSSL_VER__=102l
:: MAYBE (UN)COMMENT STEP-BY-STEP
perl Configure VC-WIN64A no-shared threads --prefix=C:\Dev\OpenSSL_%__OPENSSL_VER__%_vs2015_64_xp --openssldir=C:\Dev\OpenSSL_Config_%__OPENSSL_VER__% -D_USING_V110_SDK71_
if ERRORLEVEL 1 goto :ERROR
call ms\do_win64a
if ERRORLEVEL 1 goto :ERROR
nmake -f ms\nt.mak clean
nmake -f ms\nt.mak
if ERRORLEVEL 1 goto :ERROR
nmake -f ms\nt.mak install
if ERRORLEVEL 1 goto :ERROR
pause
goto :EOF
:ERROR
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.