Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2010 22:58:37 +0100
From:      Chris Whitehouse <cwhiteh@onetel.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   setting ccache path
Message-ID:  <4BDA010D.2070001@onetel.com>

next in thread | raw e-mail | index | archive | help
Hi

I have just installed devel/ccache. I set up /etc/make.conf , 
/etc/csh.cshrc and /etc/profile according to 
/usr/local/share/doc/ccache/ccache-howto-freebsd.txt to include 
/usr/local/libexec/ccache in roots path but ccache doesn't get used. I 
think it is because roots path is set absolutely in .cshrc so the 
setting is /etc/csh.cshrc gets overridden.

In a terminal if I set roots path to include /usr/local/libexec/ccache 
ccache works. I tested by timing make(1) in a port but I can see it is 
working anyway because /root/.ccache gets created and populated.

Am I failing to follow ccache-howto-freebsd.txt or is it telling me 
something wrong and I should be adding /usr/local/libexec/ccache to 
roots path in .cshrc and .profile.?

Actually I think a better solution would be to set CCACHE_PATH to 
/usr/local/libexec/ccache to avoid the shell looking there first for 
_every_ command invocation, but I'm not sure where is the best place to 
set it. .cshrc and/or .profile?

thanks

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BDA010D.2070001>