I have a source directory which uses makefile to compile the code. This makefile/configure file is not written for ccache compatibility. So I thought to use ccache. I created alias in .bashrc as alias gcc='ccache gcc'
, but Makefile is still not considering this definition of gcc. So is there anything I can do without touching Makefile/configure
file such that it takes ccache gcc
instead of gcc
.
Also CC='ccache gcc' ./configure is not an option, since it does not ask for CC.
If I write Makefile then I can provide ${gcc), but this is not an option, since I am not writing Makefile. Is there any way by which we don't need to change anything in source file, but still enable ccache
compiling.
gcc
rather than$(CC)
? – Oliver Charlesworth