applied patch from Shaun Walbridge - make dl module work on x86_64
This commit is contained in:
parent
9980d406fc
commit
ad79c5a4fd
1 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,12 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
from sys import getdlopenflags,setdlopenflags
|
from sys import getdlopenflags,setdlopenflags
|
||||||
from dl import RTLD_NOW,RTLD_GLOBAL
|
try:
|
||||||
|
from dl import RTLD_NOW, RTLD_GLOBAL
|
||||||
|
except ImportError:
|
||||||
|
RTLD_NOW = 2
|
||||||
|
RTLD_GLOBAL = 256
|
||||||
|
|
||||||
flags = getdlopenflags()
|
flags = getdlopenflags()
|
||||||
setdlopenflags(RTLD_NOW | RTLD_GLOBAL)
|
setdlopenflags(RTLD_NOW | RTLD_GLOBAL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue