[MPlayer-dev-eng] configure cc

Diego Biurrun diego at biurrun.de
Tue Nov 29 00:36:16 CET 2005


On Sun, Nov 27, 2005 at 08:48:20PM +0200, Ivan Kalvachev wrote:
> 2005/11/27, Diego Biurrun <diego at biurrun.de>:
> > On Sun, Nov 27, 2005 at 05:50:13PM +0200, Ivan Kalvachev wrote:
> > >
> > > I already have new big HDD  and just like numerous mplayer developer I
> > > had tried to speedup mplayer building process by ccache. Being a
> > > little paranoid about it I would like to first test it without making
> > > ccache a system wide (aka making overriding gcc links to ccache).
> > >
> > > So I tried to override it with export CC=ccache.
> > > Fair enough ./configure ignored it completely. Then I tried to use
> > > --cc=ccache, that had nearly same effect. Now it comes time for
> > > inspection of configure.
> >
> > That's not the correct way to use ccache, see man ccache.  Either use it
> > through a symlink or prefix the gcc command with ccache, i.e.
> >
> > /home/diego/bin/gcc --> /usr/bin/ccache
> 
> You forget to say that I must add "/home/user/bin" to the PATH before
> the default /usr/bin.

I just took for granted that you knew this.  I still think you do.

> > or
> >
> > ./configure --cc="ccache gcc"
> 
> But even with the proper line above, it still doesn't use "cache gcc" 
> but the fallback to"gcc".
> It may be ccache mistake, but still, the point remains. Why configure
> things cc is always gcc.

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.

Diego




More information about the MPlayer-dev-eng mailing list