Author: Matti Picus <[email protected]>
Branch:
Changeset: r70031:9a94ce726040
Date: 2014-03-17 23:22 +0200
http://bitbucket.org/pypy/pypy/changeset/9a94ce726040/
Log: allow pytineractive to use ssl and thread modules on win32
diff --git a/pypy/module/_ssl/thread_lock.py b/pypy/module/_ssl/thread_lock.py
--- a/pypy/module/_ssl/thread_lock.py
+++ b/pypy/module/_ssl/thread_lock.py
@@ -1,6 +1,7 @@
from rpython.rlib.ropenssl import *
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.translator.tool.cbuild import ExternalCompilationInfo
+import sys
# CRYPTO_set_locking_callback:
#
@@ -64,11 +65,17 @@
from rpython.rlib import rthread
+libraries = []
+if sys.platform == 'win32':
+ # XXX Not needed for mingw32...
+ libraries = ['libeay32', 'user32', 'advapi32', 'gdi32']
+
eci = rthread.eci.merge(ExternalCompilationInfo(
separate_module_sources=[separate_module_source],
post_include_bits=[
"int _PyPy_SSL_SetupThreads(void);"],
export_symbols=['_PyPy_SSL_SetupThreads'],
+ libraries = libraries,
))
_PyPy_SSL_SetupThreads = rffi.llexternal('_PyPy_SSL_SetupThreads',
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit