[Ttssh2-commit] [7808] (1) OpenSSL の静的ライブラリのみを作るため no-shared を追加した。

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 6月 24日 (月) 19:51:47 JST


Revision: 7808
          https://osdn.net/projects/ttssh2/scm/svn/commits/7808
Author:   yutakapon
Date:     2019-06-24 19:51:47 +0900 (Mon, 24 Jun 2019)
Log Message:
-----------
(1) OpenSSL の静的ライブラリのみを作るため no-shared を追加した。
この追加がないと ttxssh.dll に libcrypto-1_1.dll がリンクされてしまうため。

(2) Microsoft CAPI engineを無効化するため no-capieng を追加した。
no-shared を追加してビルドしたOpenSSLを使うと、TTSSHのビルド(リンク)が通らないため。
CAPIエンジン(engines/e_capi.c)はwincrypt.h/Crypt32.lib(XP以降)を必要とするため、
Windows95サポートのためにも無効化する必要がある。

チケット #36876 

(*) 注意事項
TTSSHをデバッグビルドすると、下記警告が多量に発生する(原因不明)。

5>libcrypto.lib(aes_cbc.obj) : warning LNK4204: 'c:\usr\openssl_1_1_1_v2_vs2005\ttssh2\ttxssh\debug\ossl_static.pdb' に参照するモジュールのデバッグ情報がありません。デバッグ情報を無視してオブジェクトをリンクします。

Ticket Links:
------------
    https://osdn.net/projects/ttssh2/tracker/detail/36876

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

-------------- next part --------------
Modified: branches/openssl_1_1_1_v2/libs/buildopenssl11.bat
===================================================================
--- branches/openssl_1_1_1_v2/libs/buildopenssl11.bat	2019-06-24 08:30:34 UTC (rev 7807)
+++ branches/openssl_1_1_1_v2/libs/buildopenssl11.bat	2019-06-24 10:51:47 UTC (rev 7808)
@@ -5,7 +5,7 @@
 perl -e "open(IN,'Configurations/10-main.conf');while(<IN>){s|/WX|/W1|;print $_;}close(IN);" > conf.tmp
 move conf.tmp Configurations/10-main.conf
 
-perl Configure no-asm no-async VC-WIN32 -D_WIN32_WINNT=0x0501 --debug
+perl Configure no-asm no-async no-shared no-capieng VC-WIN32 -D_WIN32_WINNT=0x0501 --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
@@ -17,7 +17,7 @@
 :build_dbg_end
 
 if exist "out32\libcrypto.lib" goto build_end
-perl Configure no-asm no-async VC-WIN32 -D_WIN32_WINNT=0x0501
+perl Configure no-asm no-async no-shared no-capieng VC-WIN32 -D_WIN32_WINNT=0x0501
 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 メーリングリストの案内
Back to archive index