aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasil Velichkov <vvvelichkov@gmail.com>2019-09-07 02:46:30 +0300
committerPiotr Krysik <ptrkrysik@gmail.com>2020-02-14 15:14:07 +0000
commitebf65653674d2826e3410be3d2eb8a80c8e7410b (patch)
treed44168e78d252144bebfaab9827635104c6285ee
parent5b8c376561060cc65db8bb7b51eb7eccfba62157 (diff)
Remove the RTLD_GLOBAL hack
It was removed from gnuradio back in 2014 https://github.com/gnuradio/gnuradio/commit/39f14138ac9158eb0610e89a2ae1f8290f184c44 Change-Id: I1604ad5b9eefe3d4a2228b2a09e2069962844c97
-rw-r--r--python/__init__.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 557a8d6..ba5fc00 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -23,23 +23,6 @@ This is the GNU Radio GSM module. Place your Python package
description here (python/__init__.py).
'''
-# ----------------------------------------------------------------
-# Temporary workaround for ticket:181 (swig+python problem)
-import sys
-_RTLD_GLOBAL = 0
-try:
- from dl import RTLD_GLOBAL as _RTLD_GLOBAL
-except ImportError:
- try:
- from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
- except ImportError:
- pass
-
-if _RTLD_GLOBAL != 0:
- _dlopenflags = sys.getdlopenflags()
- sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
-# ----------------------------------------------------------------
-
# import swig generated symbols into the gsm namespace
from .grgsm_swig import *
@@ -59,12 +42,3 @@ from .fn_time import *
from .txtime_bursts_tagger import *
from .arfcn import *
from .device import *
-
-
-#
-
-# ----------------------------------------------------------------
-# Tail of workaround
-if _RTLD_GLOBAL != 0:
- sys.setdlopenflags(_dlopenflags) # Restore original flags
-# ----------------------------------------------------------------