summarylogtreecommitdiffstats
path: root/fix_python_binary_loading.patch
diff options
context:
space:
mode:
authorFabian Bornschein2021-05-23 19:16:18 +0200
committerFabian Bornschein2021-05-23 19:16:18 +0200
commitd2d3d31d1b07e9add39bd42f70958aa57bb23d13 (patch)
tree1b2c0afcfeaee858b56add90fdad1e58292ff6f6 /fix_python_binary_loading.patch
downloadaur-rpan-studio.tar.gz
A little consideration, a little thought for others, makes all the difference. -- Eeyore, Winnie-the-Pooh
Diffstat (limited to 'fix_python_binary_loading.patch')
-rw-r--r--fix_python_binary_loading.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/fix_python_binary_loading.patch b/fix_python_binary_loading.patch
new file mode 100644
index 000000000000..6cba55f2f1af
--- /dev/null
+++ b/fix_python_binary_loading.patch
@@ -0,0 +1,24 @@
+From c482159ce93deafc7f1fc5755ba15135709ae726 Mon Sep 17 00:00:00 2001
+From: Matt Gajownik <matt@obsproject.com>
+Date: Tue, 25 Aug 2020 19:28:26 +1000
+Subject: [PATCH] libobs/util: Fix loading Python binary modules on *nix
+
+Fixes #2222
+---
+ libobs/util/platform-nix.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libobs/util/platform-nix.c b/libobs/util/platform-nix.c
+index 26800d52f7..997b62db1a 100644
+--- a/libobs/util/platform-nix.c
++++ b/libobs/util/platform-nix.c
+@@ -71,7 +71,8 @@ void *os_dlopen(const char *path)
+ #ifdef __APPLE__
+ void *res = dlopen(dylib_name.array, RTLD_LAZY | RTLD_FIRST);
+ #else
+- void *res = dlopen(dylib_name.array, RTLD_LAZY);
++ void *res = dlopen(dylib_name.array,
++ RTLD_LAZY | RTLD_DEEPBIND | RTLD_GLOBAL);
+ #endif
+ if (!res)
+ blog(LOG_ERROR, "os_dlopen(%s->%s): %s\n", path,