Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 04:34:44 -0500
From:      michael johnson <buhnux@gmail.com>
To:        Bjarne Wichmann Petersen <freebsd.nospam@mekanix.dk>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: FreeBSD ccache port is wonderfiul!
Message-ID:  <C5FCA709-F847-45E6-B214-5D0CAC5BE38F@ahze.net>
In-Reply-To: <200511251028.29199.freebsd.nospam@mekanix.dk>
References:  <200511210625.16973.ringworm01@gmail.com> <200511251028.29199.freebsd.nospam@mekanix.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Nov 25, 2005, at 4:28 AM, Bjarne Wichmann Petersen wrote:

> On Monday 21 November 2005 15:25, Michael C. Shultz wrote:
>
>> ps: I cc'ed freebsd-ports@freebsd.org in case others like myself  
>> haven't
>> heard of this program yet, it may be found in /usr/ports/devel/ 
>> ccache.
>
> I'm looking at it now, and have a small question. Reading the howto- 
> freebsd
> I'll have to insert the following into etc/make.conf:
>
> .if !defined(NOCCACHE)
>  .if ${.CURDIR:M/usr/src*}
>  CC=/usr/local/libexec/ccache/cc
>  CXX=/usr/local/libexec/ccache/c++
>  .else
>  CC=cc
>  CXX=c++
>  .endif
>  .else
>  CC=/usr/bin/cc
>  CXX=/usr/bin/c++
>  .endif
>
> I don't know much shell-scripting, so I'm not entirely sure what
> ${.CURDIR:M/usr/src*} does. But to me it looks like ccache will be  
> called
> upon only when the current directory is beneath /usr/src; ie.
> world/kernel-builds.

yeah, the reason for this is because src/ sets PATH

root@blueheron /usr/src > make -V PATH
/sbin:/bin:/usr/sbin:/usr/bin

and ccache lives in /usr/local..


> Should I make another if-statement for /usr/ports? Or do
> I have it all wrong

as long as you have /usr/local/libexec/ccache in your path
before /usr/bin you'll be fine.

>
> Bjarne
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports- 
> unsubscribe@freebsd.org"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDhtq3n4uqfTwEb9YRAqOSAJ97JAht+o/3c6+BvX9VUd4C7BdZkgCfZ5aJ
qXPG7s7OgbiWl02yvXLGVEI=
=5wxd
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C5FCA709-F847-45E6-B214-5D0CAC5BE38F>