[CFT] [bsd.port.mk] ports ccache build support

RW rwmaillists at googlemail.com
Sat Aug 4 13:16:13 UTC 2012


On Fri, 03 Aug 2012 20:05:54 -0500
Bryan Drewery wrote:

> Hi,
> 
> ports/169579 is currently tracking this.
> 
> This patch adds ccache support to ports (off by default). Other
> patches have changed $CC to use ccache, which results in having a
> space in $CC. This breaks many ports such as boost and libtool ports.
> 
> This patch however utilizes the symlinks in
> /usr/local/libexec/ccache/{cc,gcc,etc...} by prefixing that directory
> into $PATH in the $MAKE_ENV.

But if you've read the ccache documentation you probably already have
that directory in PATH anyway. Does this patch provide a significant
advantage?

 
> The cache directory CCACHE_DIR defaults to /usr/obj/ccache
>...
> To use ccache(1) from the command line to configure the size or view
> stats: CCACHE_DIR=/usr/obj/ccache ccache -s

Having a default ccache directory in the makefile that's different from
the default documented in the ccache man page seems needlessly
confusing to me.

And see hier(7) and section  25.7.6 of the handbook for
why /usr/obj/ccache is a poor choice.


More information about the freebsd-ports mailing list