summaryrefslogtreecommitdiffstats
path: root/obs-studio/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-10-18 17:16:54 +0000
committer Eric Hameleers <alien@slackware.com>2020-10-18 17:16:54 +0000
commitb51cb6366a0c20bb0233c9b2202886c022345c29 (patch)
tree9efdf9bd1a3d1bac9533ca87442661e4e354951d /obs-studio/build
parent41ceef61b7a0e74936c2b129a947cb00fe406700 (diff)
downloadasb-b51cb6366a0c20bb0233c9b2202886c022345c29.tar.gz
asb-b51cb6366a0c20bb0233c9b2202886c022345c29.tar.xz
Initial revision
Diffstat (limited to 'obs-studio/build')
-rw-r--r--obs-studio/build/patches/obs-studio_load_python_binmods.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/obs-studio/build/patches/obs-studio_load_python_binmods.patch b/obs-studio/build/patches/obs-studio_load_python_binmods.patch
new file mode 100644
index 00000000..6cba55f2
--- /dev/null
+++ b/obs-studio/build/patches/obs-studio_load_python_binmods.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,