RTLD_GLOBAL

This commit is contained in:
ShirosakiMio 2023-03-02 20:12:03 +08:00
parent 6078459bb2
commit 504bcd2fb0
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ typedef VkResult (APIENTRY *PFN_vkCreateAndroidSurfaceKHR)(VkInstance, const VkA
#include "osmesa_context.h"
#include "null_joystick.h"
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL)
#define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_GLOBAL)
#define _glfw_dlclose(handle) dlclose(handle)
#define _glfw_dlsym(handle, name) dlsym(handle, name)

View File

@ -48,7 +48,7 @@ void *extal_NativeGetFunctionPointer(const char *function) {
void extal_LoadLibrary(JNIEnv *env, jstring path) {
char *path_str = GetStringNativeChars(env, path);
printfDebugJava(env, "Testing '%s'", path_str);
handleOAL = dlopen(path_str, RTLD_LAZY);
handleOAL = dlopen(path_str, RTLD_LAZY | RTLD_GLOBAL);
if (handleOAL != NULL) {
printfDebugJava(env, "Found OpenAL at '%s'", path_str);
} else {

View File

@ -47,7 +47,7 @@ void *extcl_NativeGetFunctionPointer(const char *function) {
void extcl_LoadLibrary(JNIEnv *env, jstring path) {
char *path_str = GetStringNativeChars(env, path);
printfDebugJava(env, "Testing '%s'", path_str);
handleOCL = dlopen(path_str, RTLD_LAZY);
handleOCL = dlopen(path_str, RTLD_LAZY | RTLD_GLOBAL);
if (handleOCL != NULL) {
printfDebugJava(env, "Found OpenCL at '%s'", path_str);
} else {