0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 08:11:16 +00:00
Files
termux-packages/x11-packages/electron-host-tools-for-code-oss/cr-patches/2002-weston-fix-dynamic-loaded-libraries.patch
2025-05-12 15:06:25 +08:00

15 lines
524 B
Diff

--- a/third_party/weston/src/libweston/backend-drm/drm-gbm.c
+++ b/third_party/weston/src/libweston/backend-drm/drm-gbm.c
@@ -61,7 +61,11 @@
* only the gl-renderer module links to it, the call above won't make
* these symbols globally available, and loading the DRI driver fails.
* Workaround this by dlopen()'ing libglapi with RTLD_GLOBAL. */
+#ifdef __TERMUX__
+ dlopen("libglapi.so", RTLD_LAZY | RTLD_GLOBAL);
+#else
dlopen("libglapi.so.0", RTLD_LAZY | RTLD_GLOBAL);
+#endif
gbm = gbm_create_device(fd);