获取GCC版本:strings -a {library} | grep “GCC: (”
mryqu> strings -a libcurl.a | grep "GCC: ("
GCC: (GNU) 4.4.5 20110214 (Red Hat 4.4.5-6)
获取编译平台信息:ar -x {library}file *.o
mryqu> ar -x libcurl.a
mryqu>file libcurl_la-url.o
libcurl_la-url.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
参考
How to retrieve the GCC version used to compile a given ELF executable?
How to see the compilation platform of a static library file