I've got a .so library compiled for Linux under the ELF format, which is being used by a Java program. I'm trying to port this application to Mac OS X, and have discovered that OS X uses a different extension for these files, .jnilib. I've already figured out how to set up the PATH so that it correctly finds the files. However, OS X Java cannot load the .so files (because it expects the other extension).
If I change the file extension from .so to .jnilib, the JVM can find the files but can't read them (since they've been compiled incorrectly).
Is there any way, either in a Linux system or in Mac OS X, without the source code, to convert these .so files to .jnilib? I suspect that this is not possible, but Stack Overflow hasn't failed me yet - and I wouldn't count "it's not possible" as failure.