[arch-general] gcc version package is compiled with

Jan de Groot jan at jgc.homeip.net
Tue Jun 16 19:22:26 EDT 2009


On Tue, 2009-06-16 at 20:09 -0300, Gerardo Exequiel Pozzi wrote:
> Baho Utot wrote:
> > Is there any way to tell which version of gcc an executable is
> > compiled with?
> >
> >
> >
> Hello :)
> 
> Maybe can be a better way :) But this just works.
> 
> strings -a /the/file | grep -m1 GCC
> 
> Good Luck!

Seems to work, but only on binaries and libraries that have been
compiled against glibc. Libraries compiled against uclibc won't show
this information.



More information about the arch-general mailing list