jna/jna-3.0.9-linux-nomaplibrary.patch
2008-11-30 18:43:32 +00:00

15 lines
624 B
Diff

--- jna-3.0.9/src/com/sun/jna/NativeLibrary.java 2008-10-28 20:30:54.000000000 -0400
+++ jna-3.0.9.orig/src/com/sun/jna/NativeLibrary.java 2008-11-15 18:29:52.000000000 -0500
@@ -374,8 +374,9 @@
return name;
}
else if (Platform.isLinux()) {
- if (isVersionedName(libName)) {
- // A specific version was requested - use as is for search
+ if (isVersionedName(libName) || libName.endsWith(".so")) {
+ // An already mapped name was specified - use as is
+ // for search
return libName;
}
}