Last active
June 19, 2017 17:24
-
-
Save Ruzzz/561ff0b3d0aa558178d9edecee06e00f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Note: rename openssl.exe -> openssl64.exe | |
:: Edit: \Configurations\10-main.conf | |
:: Replace: /subsystem:console -> /subsystem:console,5.02 | |
:: | |
:: 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__=110f | |
:: MAYBE (UN)COMMENT STEP-BY-STEP | |
perl Configure VC-WIN64A no-shared -static no-deprecated 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 | |
nmake | |
if ERRORLEVEL 1 goto :ERROR | |
nmake 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