[MPlayer-dev-eng] Re: configure cc

Tobias Diedrich ranma at tdiedrich.de
Tue Nov 29 20:35:22 CET 2005


Diego Biurrun wrote:

> I think ccache directly passes these things through to the real
> compiler:
> 
> cerebus:~$ gcc --version
> gcc (GCC) 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
> cerebus:~$ ls -l `which gcc`
> lrwxrwxrwx 1 diego diego 15 2005-06-20 18:03 /home/diego/bin/gcc -> /usr/bin/ccache
> 
> And it makes sense this way.  ccache has to be transparent.  Otherwise
> things like configure checks for compiler features would not work.

It seems to detect if it's symlinked (and called with gcc as name in
argv[0]):

ranma at melchior:~$ ccache --version
ccache: invalid option -- -
ccache, a compiler cache. Version 2.4
[...]
ranma at melchior:~$ ln -s `which ccache` gcc
ranma at melchior:~$ ./gcc --version
gcc (GCC) 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
Copyright (C) 2005 Free Software Foundation, Inc.

-- 
Tobias						PGP: http://9ac7e0bc.uguu.de




More information about the MPlayer-dev-eng mailing list