From f03c4cc9224db9c333e5ce1f97e720dc0f30e982 Mon Sep 17 00:00:00 2001 From: Thiemo Seufer Date: Sun, 5 Oct 2008 08:16:38 +0000 Subject: [PATCH] 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 * 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. --- ChangeLog | 9 +++++++++ gst/__init__.py | 9 +++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c90737e07..7646b72384 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-10-05 Sebastian Dröge + + Patch by: Thiemo Seufer + + * 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 Patch by: Alexander Wirt diff --git a/gst/__init__.py b/gst/__init__.py index d69e5e1be7..a636f32672 100644 --- a/gst/__init__.py +++ b/gst/__init__.py @@ -155,8 +155,13 @@ except ImportError: import os osname = os.uname()[0] if osname == 'Linux' or osname == 'SunOS' or osname == 'FreeBSD': - RTLD_GLOBAL = 0x100 - RTLD_LAZY = 0x1 + machinename = os.uname()[4] + if machinename == 'mips' or machinename == 'mips64': + RTLD_GLOBAL = 0x4 + RTLD_LAZY = 0x1 + else: + RTLD_GLOBAL = 0x100 + RTLD_LAZY = 0x1 elif osname == 'Darwin': RTLD_GLOBAL = 0x8 RTLD_LAZY = 0x1