In LINUX determine if a .a library/archive 32-bit or 64-bit? In LINUX determine if a .a library/archive 32-bit or 64-bit? linux linux

In LINUX determine if a .a library/archive 32-bit or 64-bit?


objdump seems like the best way:

objdump -f libfoo.a | grep ^architecture


The simplest way is to use the file command.

$ file <.so file or .a file>


Just use the file command; i.e. file library.so