RTLD_GLOBAL
This commit is contained in:
parent
6078459bb2
commit
504bcd2fb0
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue