Revision | 7808 (tree) |
---|---|
Zeit | 2019-06-24 19:51:47 |
Autor | (del#24082) |
(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' に参照するモジュールのデバッグ情報がありません。デバッグ情報を無視してオブジェクトをリンクします。
@@ -5,7 +5,7 @@ | ||
5 | 5 | perl -e "open(IN,'Configurations/10-main.conf');while(<IN>){s|/WX|/W1|;print $_;}close(IN);" > conf.tmp |
6 | 6 | move conf.tmp Configurations/10-main.conf |
7 | 7 | |
8 | -perl Configure no-asm no-async VC-WIN32 -D_WIN32_WINNT=0x0501 --debug | |
8 | +perl Configure no-asm no-async no-shared no-capieng VC-WIN32 -D_WIN32_WINNT=0x0501 --debug | |
9 | 9 | perl -e "open(IN,'makefile');while(<IN>){s| /MDd| /MTd|;print $_;}close(IN);" > makefile.tmp |
10 | 10 | if exist "makefile.dbg" del makefile.dbg |
11 | 11 | ren makefile.tmp makefile.dbg |
@@ -17,7 +17,7 @@ | ||
17 | 17 | :build_dbg_end |
18 | 18 | |
19 | 19 | if exist "out32\libcrypto.lib" goto build_end |
20 | -perl Configure no-asm no-async VC-WIN32 -D_WIN32_WINNT=0x0501 | |
20 | +perl Configure no-asm no-async no-shared no-capieng VC-WIN32 -D_WIN32_WINNT=0x0501 | |
21 | 21 | perl -e "open(IN,'makefile');while(<IN>){s| /MD| /MT|;print $_;}close(IN);" > makefile.tmp |
22 | 22 | if exist "makefile" del makefile |
23 | 23 | ren makefile.tmp makefile |