[issue20276] ctypes._dlopen should not force RTLD_NOW

STINNER Victor report at bugs.python.org
Thu Jan 16 09:24:46 CET 2014


STINNER Victor added the comment:

FYI, dlopen() flags are configurable:
-  sys.setdlopenflags(n): default=RTLD_NOW (if available, or RTLD_LAZY otherwise)
- mode parameter of dl.dlopen(): default=RTLD_LAZY
- mode parameter of ctypes.CDLL: default=RTLD_LOCAL (but RTLD_GLOBAL on Mac OS X <= 10.3); but RTLD_NOW is always added

See also:
"How to disable RTLD_NOW for Python 2.7.x dlopen() in Mac OS X Mavericks?"
https://groups.google.com/forum/#!msg/comp.lang.python/DKmNGwyLl3w/1tuxcnwBAw8J

"how to handle library interdependencies"
http://osdir.com/ml/python.ctypes/2006-10/msg00022.html

"Need RTLD_GLOBAL for linux?"
http://code.google.com/p/ctypesgen/issues/detail?id=3

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20276>
_______________________________________


More information about the Python-bugs-list mailing list