diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/java/com/sun/gluegen/runtime/NativeLibrary.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/sun/gluegen/runtime/NativeLibrary.java b/src/java/com/sun/gluegen/runtime/NativeLibrary.java index 7ae9cdf..20419d9 100755 --- a/src/java/com/sun/gluegen/runtime/NativeLibrary.java +++ b/src/java/com/sun/gluegen/runtime/NativeLibrary.java @@ -221,6 +221,14 @@ public class NativeLibrary { String libName = selectName(windowsLibName, unixLibName, macOSXLibName); if (libName == null) return paths; + + // Allow user's full path specification to override our building pf paths + File file = new File(libName); + if (file.isAbsolute()) { + paths.add(libName); + return paths; + } + String[] baseNames = buildNames(libName); if (searchSystemPathFirst) { |