summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java')
-rwxr-xr-xsrc/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java b/src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java
index 02bc828..d2970d6 100755
--- a/src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java
+++ b/src/java/com/jogamp/common/os/UnixDynamicLinkerImpl.java
@@ -5,6 +5,7 @@ package com.jogamp.common.os;
public class UnixDynamicLinkerImpl implements DynamicLinker {
+ public static final long RTLD_DEFAULT = 0;
public static final int RTLD_LAZY = 0x00001;
public static final int RTLD_NOW = 0x00002;
public static final int RTLD_NOLOAD = 0x00004;
@@ -55,6 +56,10 @@ public class UnixDynamicLinkerImpl implements DynamicLinker {
public long lookupSymbol(long libraryHandle, String symbolName) {
return dlsym(libraryHandle, symbolName);
}
+
+ public long lookupSymbolGlobal(String symbolName) {
+ return dlsym(RTLD_DEFAULT, symbolName);
+ }
public void closeLibrary(long libraryHandle) {
dlclose(libraryHandle);