[pypy-svn] r72045 - in pypy/trunk/pypy: module/_ssl translator/c/gcc translator/platform

afa at codespeak.net afa at codespeak.net
Wed Mar 10 14:01:50 CET 2010


Author: afa
Date: Wed Mar 10 14:01:48 2010
New Revision: 72045

Modified:
   pypy/trunk/pypy/module/_ssl/interp_ssl.py
   pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
   pypy/trunk/pypy/translator/platform/windows.py
Log:
Fixes for the mingw32 compiler:
- give a specific list of FUNCTIONS_NOT_RETURNING
- compile with -O3
- use static libraries for openssl


Modified: pypy/trunk/pypy/module/_ssl/interp_ssl.py
==============================================================================
--- pypy/trunk/pypy/module/_ssl/interp_ssl.py	(original)
+++ pypy/trunk/pypy/module/_ssl/interp_ssl.py	Wed Mar 10 14:01:48 2010
@@ -4,13 +4,14 @@
 from pypy.interpreter.typedef import TypeDef
 from pypy.interpreter.gateway import interp2app
 from pypy.rpython.tool import rffi_platform
+from pypy.translator.platform import platform
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 
 from pypy.rlib import rpoll
 
 import sys
 
-if sys.platform == 'win32':
+if sys.platform == 'win32' and platform.name != 'mingw32':
     libraries = ['libeay32', 'ssleay32', 'user32', 'advapi32', 'gdi32']
 else:
     libraries = ['ssl', 'crypto']

Modified: pypy/trunk/pypy/translator/c/gcc/trackgcroot.py
==============================================================================
--- pypy/trunk/pypy/translator/c/gcc/trackgcroot.py	(original)
+++ pypy/trunk/pypy/translator/c/gcc/trackgcroot.py	Wed Mar 10 14:01:48 2010
@@ -806,6 +806,12 @@
 class Mingw32FunctionGcRootTracker(DarwinFunctionGcRootTracker):
     format = 'mingw32'
 
+    FUNCTIONS_NOT_RETURNING = {
+        '_abort': None,
+        '_exit': None,
+        '__assert': None,
+        }
+
 class MsvcFunctionGcRootTracker(FunctionGcRootTracker):
     format = 'msvc'
     ESP = 'esp'

Modified: pypy/trunk/pypy/translator/platform/windows.py
==============================================================================
--- pypy/trunk/pypy/translator/platform/windows.py	(original)
+++ pypy/trunk/pypy/translator/platform/windows.py	Wed Mar 10 14:01:48 2010
@@ -303,7 +303,7 @@
     name = 'mingw32'
     standalone_only = []
     shared_only = []
-    cflags = []
+    cflags = ['-O3']
     link_flags = []
     so_ext = 'dll'
 



More information about the Pypy-commit mailing list