Skip to content

Instantly share code, notes, and snippets.

@Ruzzz
Last active June 19, 2017 17:23
Show Gist options
  • Save Ruzzz/338e202d5df7ca3ef8e287fd5c3a8031 to your computer and use it in GitHub Desktop.
Save Ruzzz/338e202d5df7ca3ef8e287fd5c3a8031 to your computer and use it in GitHub Desktop.
:: Edit: \Configurations\10-main.conf
:: Replace: /subsystem:console -> /subsystem:console,5.01
::
:: INIT XP x32 TOOLCHAIN
::
set SDK71PATH=%ProgramFiles%\Microsoft SDKs\Windows\7.1A
path %SDK71PATH%\Bin;%PATH%
set INCLUDE=%SDK71PATH%\Include;%INCLUDE%
set LIB=%SDK71PATH%\Lib;%LIB%
::
:: INIT VC++2015 x32
::
:: VS140COMNTOOLS_in_VS2017_fix.reg
:: https://gist.github.com/Ruzzz/38dc70f4b850dd5e379f8cfa2cbf09a3
if not exist "%VS140COMNTOOLS%\..\..\VC\bin\vcvars32.bat" goto :ERROR
call "%VS140COMNTOOLS%\..\..\VC\bin\vcvars32.bat"
if ERRORLEVEL 1 goto :ERROR
::
:: BUILD
::
set __OPENSSL_VER__=110f
:: MAYBE (UN)COMMENT STEP-BY-STEP
perl Configure VC-WIN32 no-shared -static no-deprecated threads --prefix=C:\Dev\OpenSSL_%__OPENSSL_VER__%_vs2015_32_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