[Zlib-devel] cc --version (Re: CHOST option)
jrnieder at gmail.com
Sun May 2 23:41:51 EDT 2010
Enrico Weigelt wrote:
> * Török Edwin <edwintorok at gmail.com> schrieb:
>> $ cc --version
>> cc (Debian 4.4.4-1) 4.4.4
>> Copyright (C) 2009 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions. There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> $ ls -l /usr/bin/cc
>> lrwxrwxrwx 1 root root 20 Mar 11 2009 /usr/bin/cc -> /etc/alternatives/cc
>> $ ls -l /etc/alternatives/cc
>> lrwxrwxrwx 1 root root 12 May 7 2009 /etc/alternatives/cc -> /usr/bin/gcc
> hmm, seems Debian patched-to-death again ? ;-o
Uh, no. You can see the list of patches debian uses here:
Unless you call using symlinks to make the target of /usr/bin/cc
configurable with a read-only /usr patching to death, there is
Probably your /usr/bin/cc is a shell script, so that argv is
changed to gcc. A version installed as gcc-4.5 or something else
would not show up as gcc.
Ancient versions of GCC will say “GNU C” instead of using argv.
Hope that helps,
 See http://repo.or.cz/w/gcc.git/blob/HEAD:/gcc/gcc.c
programname is initialized from argv and used in the version string.
More information about the Zlib-devel