gst/__init__.py: Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS as the values are different there fro...
Original commit message from CVS: Patch by: Thiemo Seufer <ths at networkno dot de> * gst/__init__.py: Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS as the values are different there from all other Linux platforms. Fixes bug #553134.
This commit is contained in:
parent
9fc25718b5
commit
f03c4cc922
@ -1,3 +1,12 @@
|
|||||||
|
2008-10-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
Patch by: Thiemo Seufer <ths at networkno dot de>
|
||||||
|
|
||||||
|
* gst/__init__.py:
|
||||||
|
Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS
|
||||||
|
as the values are different there from all other Linux platforms.
|
||||||
|
Fixes bug #553134.
|
||||||
|
|
||||||
2008-10-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2008-10-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
Patch by: Alexander Wirt <formorer at debian dot org>
|
Patch by: Alexander Wirt <formorer at debian dot org>
|
||||||
|
@ -155,8 +155,13 @@ except ImportError:
|
|||||||
import os
|
import os
|
||||||
osname = os.uname()[0]
|
osname = os.uname()[0]
|
||||||
if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD':
|
if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD':
|
||||||
RTLD_GLOBAL = 0x100
|
machinename = os.uname()[4]
|
||||||
RTLD_LAZY = 0x1
|
if machinename == 'mips' or machinename == 'mips64':
|
||||||
|
RTLD_GLOBAL = 0x4
|
||||||
|
RTLD_LAZY = 0x1
|
||||||
|
else:
|
||||||
|
RTLD_GLOBAL = 0x100
|
||||||
|
RTLD_LAZY = 0x1
|
||||||
elif osname == 'Darwin':
|
elif osname == 'Darwin':
|
||||||
RTLD_GLOBAL = 0x8
|
RTLD_GLOBAL = 0x8
|
||||||
RTLD_LAZY = 0x1
|
RTLD_LAZY = 0x1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user