From 4734c6e41967d7f34951c55665c70642f06042a0 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Tue, 19 Mar 2019 23:03:25 -0400 Subject: [PATCH] Add CURL_STATICLIB when compiling on windows, add possibly needed msvc libraries --- SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConscript b/SConscript index ce9c75392..8ebdfebf5 100644 --- a/SConscript +++ b/SConscript @@ -229,7 +229,7 @@ def findLibs(env, conf): #Windows specific libs if platform == "Windows": if msvc: - libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32'] + libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32', 'Wldap32', 'crypt32'] if GetOption('static'): libChecks += ['imm32', 'version', 'Ole32', 'OleAut32'] for i in libChecks: @@ -484,6 +484,7 @@ elif GetOption('release'): if GetOption('static'): if platform == "Windows": + env.Append(CPPDEFINES=['CURL_STATICLIB']) if compilePlatform == "Windows" and not msvc: env.Append(CPPDEFINES=['_PTW32_STATIC_LIB']) else: