[Ttssh2-commit] [6577] OpenSSL 1.1.0 を Visual Studio 2005 でビルドできるようにした。

svnno****@sourc***** svnno****@sourc*****
2017年 1月 16日 (月) 00:26:17 JST


Revision: 6577
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6577
Author:   yutakapon
Date:     2017-01-16 00:26:16 +0900 (Mon, 16 Jan 2017)
Log Message:
-----------
OpenSSL 1.1.0 を Visual Studio 2005 でビルドできるようにした。

cf.
https://github.com/openssl/openssl/issues/1505
Problem of compiling 32 bit openssl 1.1.0 with vs2005

Modified Paths:
--------------
    branches/openssl_1_1_0/libs/buildopenssl11.bat

-------------- next part --------------
Modified: branches/openssl_1_1_0/libs/buildopenssl11.bat
===================================================================
--- branches/openssl_1_1_0/libs/buildopenssl11.bat	2017-01-15 13:53:37 UTC (rev 6576)
+++ branches/openssl_1_1_0/libs/buildopenssl11.bat	2017-01-15 15:26:16 UTC (rev 6577)
@@ -2,11 +2,15 @@
 rem [no-capieng]
 rem CAPI\x83G\x83\x93\x83W\x83\x93(engines/e_capi.c)\x82\xCDCrypt32.lib(XP\x88ȍ~)\x82𗘗p\x82\xB7\x82邽\x82߁A\x8F\x9C\x8AO\x82\xB7\x82\xE9\x81B
 rem 
+rem [-D_WIN32_WINNT=0x0501]
+rem VS2005\x82Ńr\x83\x8B\x83h\x82\xB7\x82邽\x82߂\xCCworkaround\x81B
+rem cf. https://github.com/openssl/openssl/issues/1505
+rem 
 
 cd openssl
 
 if exist "out32.dbg\libcrypto.lib" goto build_dbg_end
-perl Configure no-asm no-async no-shared no-capieng VC-WIN32 --debug
+perl Configure no-asm no-async no-shared no-capieng -D_WIN32_WINNT=0x0501 VC-WIN32 --debug
 perl -e "open(IN,'makefile');while(<IN>){s| /MDd| /MTd|;print $_;}close(IN);" > makefile.tmp
 if exist "makefile.dbg" del makefile.dbg
 ren makefile.tmp makefile.dbg
@@ -18,7 +22,7 @@
 :build_dbg_end
 
 if exist "out32\libcrypto.lib" goto build_end
-perl Configure no-asm no-async no-shared no-capieng VC-WIN32
+perl Configure no-asm no-async no-shared no-capieng -D_WIN32_WINNT=0x0501 VC-WIN32
 perl -e "open(IN,'makefile');while(<IN>){s| /MD| /MT|;print $_;}close(IN);" > makefile.tmp
 if exist "makefile" del makefile
 ren makefile.tmp makefile



Ttssh2-commit メーリングリストの案内