Hehe, funny chat convo… (Quoting very loosely):
A: How can I tell if a native lib is 64 bit or 32? On linux?
Me: $file blah
B: Read the machine code. If there are x64 instructions, you know the answer ;-)
Me: “file”… it’s a command
B: For an .so? Use an analyzer
A: Too complicated
B: Just google for it
A: Maybe I see something in the output while building like inc/64bit
B: Or just call System.loadLibrary() and if there’s an error, you know the answer… ;-)
Macintosh$ file /usr/lib/libruby.dylib
/usr/lib/libruby.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
A: Cool, thanks.