通过Visual Studio中的链接选项“完整性检查”从源代码构建openssl

时间:2019-03-05 17:27:53

标签: c# visual-studio build openssl

当我从源代码构建openssl 1.1.0时,我想将“ IntegrityCheck”作为命令行参数添加到链接器。我该怎么做?

非常感谢

1 个答案:

答案 0 :(得分:0)

如果您阅读了源代码附带的“安装”文本文件,则可以找到此选项:

  

VAR =值

               Assignment of environment variable for Configure.  These
               work just like normal environment variable assignments,
               but are supported on all platforms and are confined to
               the configuration scripts only.  These assignments override
               the corresponding value in the inherited environment, if
               there is one.

               The following variables are used as "make variables" and
               can be used as an alternative to giving preprocessor,
               compiler and linker options directly as configuration.
               The following variables are supported:

               LDFLAGS         Flags for the shared library, DSO and
                               program linker.

因此,对于Windows,您需要运行以下配置脚本:

  

perl配置VC-WIN32 LDFLAGS =“ / INTEGRITYCHECK”

(我不确定要传递的开关的确切语法,因此可能需要删除'/')

然后运行正常的nmake进行构建。