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 <rep...@bugs.python.org> <http://bugs.python.org/issue20276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com