aboutsummaryrefslogtreecommitdiff
path: root/devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp')
-rw-r--r--devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp b/devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp
new file mode 100644
index 000000000000..d1dddd936268
--- /dev/null
+++ b/devel/py-pykde4/files/patch-kpythonpluginfactory__kpythonpluginfactory.cpp
@@ -0,0 +1,20 @@
+--- ./kpythonpluginfactory/kpythonpluginfactory.cpp.orig 2011-05-20 22:33:41.000000000 +0200
++++ ./kpythonpluginfactory/kpythonpluginfactory.cpp 2011-09-01 16:43:57.371033306 +0200
+@@ -18,6 +18,8 @@
+ Boston, MA 02111-1307, USA.
+ */
+
++#include <dlfcn.h>
++
+ #include <QtCore/QCoreApplication>
+ #include <QFileInfo>
+ #include <QDir>
+@@ -305,6 +307,8 @@
+ // symbols global and available for later loaded libraries/module.
+ QLibrary *LoadPythonLibrary()
+ {
++ /* Promote this library (and thus libpython) to RTLD_GLOBAL) */
++ dlopen("kpythonpluginfactory.so", RTLD_NOLOAD | RTLD_GLOBAL);
+ QLibrary *pythonLib = new QLibrary();
+ pythonLib->setLoadHints(QLibrary::ExportExternalSymbolsHint);
+ pythonLib->setFileName(LIB_PYTHON);