We distribute in Linux a static lib in both 64-bit and 32-bit versions. When troubleshooting a customer, I would like my diagnostic shell script to quickly eliminate the issue
objdump seems like the best way:
objdump
objdump -f libfoo.a | grep ^architecture