[pypy-svn] r66233 - pypy/trunk/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Wed Jul 15 14:49:05 CEST 2009


Author: fijal
Date: Wed Jul 15 14:49:05 2009
New Revision: 66233

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
Kill RTLD_GLOBAL. It breaks tests in very unobvious way, if the symbol is looked
up more than once. Some other hackery is needed, but I need a machine to
reproduce the failure first :-( this is essentially a partial revert of
50475


Modified: pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	Wed Jul 15 14:49:05 2009
@@ -834,7 +834,7 @@
             if libpath:
                 dllclass = getattr(ctypes, calling_conv + 'dll')
                 # urgh, cannot pass the flag to dllclass.LoadLibrary
-                clib = dllclass._dlltype(libpath, ctypes.RTLD_GLOBAL)
+                clib = dllclass._dlltype(libpath)
                 cfunc = get_on_lib(clib, funcname)
                 if cfunc is not None:
                     break



More information about the Pypy-commit mailing list