Fixed OpenSSL compilation for Agent2 on Windows

This commit is contained in:
dotneft 2022-05-09 14:19:26 +03:00
parent b2ba56547d
commit 44b880eb75
2 changed files with 7 additions and 6 deletions

View File

@ -212,8 +212,8 @@ RUN Set-Location -Path $env:SystemDrive\.; `
--prefix=$env:SystemDrive\openssl_output `
--openssldir=$env:SystemDrive\openssl_output_ssl; `
set CL=/MP; `
nmake /S; `
nmake /S install_sw; `
nmake /S build_sw; `
nmake /S install_dev; `
Write-Host 'OpenSSL is ready...';
COPY modbus.vs16.vcxproj c:\

View File

@ -242,10 +242,11 @@ RUN Set-Location -Path $env:SystemDrive\.; `
# enable-capieng `
no-capieng `
--api=1.1.0 `
--prefix=$env:SystemDrive\openssl_output `
--openssldir=$env:SystemDrive\openssl_output_ssl; `
mingw32-make -s -j"""$env:NUMBER_OF_PROCESSORS"""; `
mingw32-make -s -j"""$env:NUMBER_OF_PROCESSORS""" install_sw; `
--libdir=lib `
--prefix=$env:SystemDrive/openssl_output `
--openssldir=$env:SystemDrive/openssl_output_ssl; `
mingw32-make -s -j"""$env:NUMBER_OF_PROCESSORS""" build_sw; `
mingw32-make -s -j"""$env:NUMBER_OF_PROCESSORS""" install_dev; `
Write-Host 'OpenSSL is ready...'; `
Write-Host 'Removing cygwin...'; `
Remove-Item -Recurse -Force -Path $env:SystemDrive\cygwin;