diff options
Diffstat (limited to 'openssl/openssl')
-rw-r--r-- | openssl/openssl/buildfile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/openssl/openssl/buildfile b/openssl/openssl/buildfile index b03de5f..5d87cd0 100644 --- a/openssl/openssl/buildfile +++ b/openssl/openssl/buildfile @@ -15,6 +15,8 @@ linux = ($tclass == 'linux') bsd = ($tclass == 'bsd') windows = ($tclass == 'windows') +msvc_runtime = ($c.target.system == 'win32-msvc') + gcc = ($c.class == 'gcc') msvc = ($c.class == 'msvc') @@ -43,13 +45,12 @@ else # Note that upstream also passes -DOPENSSL_USE_APPLINK if compiled with VC. # We drop this option (see libcrypto/buildfile) for details. # - if $msvc - { + if $msvc_runtime c.poptions += -DOPENSSL_SYS_WIN32 -D_CRT_SECURE_NO_DEPRECATE \ -D_WINSOCK_DEPRECATED_NO_WARNINGS + if $msvc c.coptions += /Gs0 /GF /Gy - } else c.poptions += -D_MT } @@ -91,7 +92,7 @@ else { c.libs += $regex.apply(ws2_32 gdi32 crypt32, \ '(.+)', \ - $msvc ? '\1.lib' : '-l\1') - if $msvc + $msvc_runtime ? '\1.lib' : '-l\1') + if $msvc_runtime c.libs += advapi32.lib } |