Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Jun 14, 2022
1 parent 0db4482 commit 19e0e3c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/com/sun/jna/NativeLibrary.java
Expand Up @@ -781,8 +781,7 @@ else if (Platform.isLinux() || Platform.isFreeBSD()) {
}
}
else if (Platform.isAIX()) { // can be libx.a, libx.a(shr.o), libx.so
if (isVersionedName(libName) || libName.endsWith(".so") || libName.startsWith("lib") || libName.endsWith(".a")) {
// A specific version was requested - use as is for search
if (libName.startsWith("lib")) {
return libName;
}
}
Expand All @@ -792,12 +791,7 @@ else if (Platform.isWindows()) {
}
}

String mappedName = System.mapLibraryName(libName);
if(Platform.isAIX() && mappedName.endsWith(".so")) {
return mappedName.replaceAll(".so$", ".a");
} else {
return mappedName;
}
return System.mapLibraryName(libName);
}

private static boolean isVersionedName(String name) {
Expand Down

0 comments on commit 19e0e3c

Please sign in to comment.