Skip to content

Commit

Permalink
Add CURL_STATICLIB when compiling on windows, add possibly needed msv…
Browse files Browse the repository at this point in the history
…c libraries
  • Loading branch information
jacob1 committed Mar 20, 2019
1 parent ed2eac6 commit 4734c6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConscript
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4734c6e

Please sign in to comment.