1 From https://github.com/kivy/python-for-android/blob/master/recipes/python/patches/fix-dlfcn.patch
3 See https://github.com/kivy/python-for-android/issues/141
4 diff -u -r ../Python-3.4.0rc1/Lib/plat-linux/DLFCN.py ./Lib/plat-linux/DLFCN.py
5 --- ../Python-3.4.0rc1/Lib/plat-linux/DLFCN.py 2014-02-10 23:51:49.000000000 +0100
6 +++ ./Lib/plat-linux/DLFCN.py 2014-02-13 03:25:19.000000000 +0100
8 # Included from gnu/stubs.h
10 # Included from bits/dlfcn.h
12 +# PATCHED FOR ANDROID (the only supported symbols are, for 64-bit):
17 +# RTLD_GLOBAL = 0x00100,
21 -RTLD_BINDING_MASK = 0x3
22 -RTLD_NOLOAD = 0x00004
23 -RTLD_GLOBAL = 0x00100
25 +RTLD_BINDING_MASK = 0x0
26 +RTLD_NOLOAD = 0x00004
27 +RTLD_GLOBAL = 0x00100
29 -RTLD_NODELETE = 0x01000
30 +RTLD_NODELETE = 0x00000