Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
resolve mingw32 build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Sep 4, 2011
1 parent c82ab45 commit 3742aee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wscript
Expand Up @@ -492,8 +492,11 @@ def configure(conf):

if sys.platform.startswith("win32"):
conf.env.append_value('LIB', 'psapi')
conf.env.append_value('LIB', 'ws2_32')
conf.env.append_value('LIB', 'winmm')
# This enforces ws2_32 to be linked after crypto, otherwise the linker
# will run into undefined references from libcrypto.a
if not Options.options.use_openssl:
conf.env.append_value('LIB', 'ws2_32')

conf.env.append_value('CPPFLAGS', '-Wno-unused-parameter');
conf.env.append_value('CPPFLAGS', '-D_FORTIFY_SOURCE=2');
Expand Down

0 comments on commit 3742aee

Please sign in to comment.