From cc29c55e6b06e1e51fd744c40cf104204f5ba236 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 4 Feb 2005 00:41:28 +0000 Subject: - Add a note in howto about changeing the default cache location since the default cache size is 1GB and this is larger than the the default partition size of root (/) [1] - Use PREFIX instead of LOCALBASE for patch to libexec/ccache/.. in howto Requested by: mezz [1] --- devel/ccache/files/ccache-howto-freebsd.txt.in | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'devel/ccache') diff --git a/devel/ccache/files/ccache-howto-freebsd.txt.in b/devel/ccache/files/ccache-howto-freebsd.txt.in index 9e21b075276b..5734361c3f31 100644 --- a/devel/ccache/files/ccache-howto-freebsd.txt.in +++ b/devel/ccache/files/ccache-howto-freebsd.txt.in @@ -18,11 +18,11 @@ CXX=/usr/bin/c++ .endif For Korn/Bourne shells Add the following to /etc/profile: - export PATH=%%LOCALBASE%%/libexec/ccache/:$PATH + export PATH=%%PREFIX%%/libexec/ccache/:$PATH export CCACHE_PATH=/usr/bin:%%LOCALBASE%%/bin For csh/tcsh Add the following to /etc/csh.cshrc: - setenv PATH %%LOCALBASE%%/libexec/ccache/:$PATH + setenv PATH %%PREFIX%%/libexec/ccache/:$PATH setenv CCACHE_PATH /usr/bin:%%LOCALBASE%%/bin -- @@ -54,3 +54,15 @@ build will fail because it will not be able to find the compiler. Any time you change CC/CXX you need to reinstall devel/libtool15 or you will run in to problems. + +-- + +Ccache's default cache size is 1GB and this is larger than the default size of +the root partition (/) on FreeBSD. To over come this you may specify a new +cache location on a different partition with the following examples. + +For Korn/Bourne shells Add the following to /etc/profile: + export CCACHE_DIR=/usr/.ccache + +For csh/tcsh Add the following to /etc/csh.cshrc + setenv DISTCC_HOSTS "/usr/.ccache" -- cgit v1.2.3