dhcpcd-discuss

Re: [PATCH] configure: support builds using ccache

Roy Marples

Sat Jun 21 15:48:19 2014

Hi Thomas

On 21/06/2014 16:21, Thomas De Schampheleire wrote:
The configure script checks whether CC is executable by means of a check 'type $CC'. However, when using ccache, CC is normally set to "ccache gcc" (using the appropriate paths). Such a compound string is not recognized by
type, however, and thus configure bails out.

This patch changes the check 'type $CC' with '$CC --version'. This will
effectively verify that $CC (the combination ccache + gcc) is executable (assuming the compiler has a --version option, which should be the case for
all compilers).

All compilers should indeed have a --version flag, but I think a better test
would be that it creates a working executable.

I've committed this:
http://roy.marples.name/projects/dhcpcd/ci/5f4bf91142fceac502c478886aeb5079a184bb43?sbs=0

Which should work just as well. I've credited you with it as you sent in the
initial patch, thanks!

Roy

Follow-Ups:
Re: [PATCH] configure: support builds using ccacheThomas De Schampheleire
References:
[PATCH] configure: support builds using ccacheThomas De Schampheleire
Archive administrator: postmaster@marples.name