[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] ccache 2.4 rpm



m0n0 wrote:
2. Especially ccache needs /usr/local/bin because gcc is located in
/usr/bin, but ccache needs some symlinks ( example: /usr/local/gcc ->
/usr/local/ccache ) to hook the compiler invocations.

That works because you must add /usr/local/bin BEFORE /usr/bin in your $PATH.

I don't like that symlinks and PATH hacks at all.
The RPM should install /usr/bin/ccache because it is the standard place. So by default the users must use "ccache gcc" explicitly, as I did on Cygwin.

Then, if one likes to use ccache by default, he can:
- ln -s /usr/bin/ccache /usr/local/bin/gcc
- ensure /usr/local/bin is before /usr/bin in the PATH

That way it should be good for anyone.

--
Vincent Rivière