Tiny Core Extensions > TCE 1.x
ccache
Jason W:
Thanks to robc for ccache:
--- Code: ---Title: ccache.tce
Description: Compiler Cache (TESTING)
Version: 2.4
Author: Andrew Tridgell
Original-site: http://ccache.samba.org/
Copying-policy: GPLv2
Size: 16.8k
Extension_by: robc
Comments: This package requires compiletc
Change CC="gcc" to CC="ccache gcc" in the
Makefile or with ./configure.
----------------------------------------------
Please see the man page for additional
information.
Also see http://ccache.samba.org/
for more information.
----------------------------------------------
This extension is PPI compatible.
Change-log: 2009/5/19 Original
Current: 2009/5/19 Original
--- End code ---
--- Code: ---Title: ccache.tce
Description: Compiler Cache (TESTING)
Version: 2.4
Author: Andrew Tridgell
Original-site: http://ccache.samba.org/
Copying-policy: GPLv2
Size: 16.8k
Extension_by: robc
Comments: This package requires compiletc
Change CC="gcc" to CC="ccache gcc" in the
Makefile or with ./configure.
----------------------------------------------
Please see the man page for additional
information.
Also see http://ccache.samba.org/
for more information.
----------------------------------------------
This extension is PPI compatible.
Change-log: 2009/5/19 Original
Current: 2009/5/19 Original
--- End code ---
Jason W:
Thanks for uploading this. Ccache saves a lot of time on recompiles, I used to use it all the time on another distro but I set it aside and haven't used it on TC until this extension . Another way to make it universal in TC is to first symlink a gcc and g++ to ccache:
--- Code: ---mkdir /usr/local/ccache/bin
ln -s /usr/local/bin/ccache /usr/local/ccache/bin/gcc
ln -s /usr/local/bin/ccache /usr/local/ccache/bin/g++
--- End code ---
Then at the command line before compiling, or enter in your bashrc this:
--- Code: ---export CCACHE_DIR=/mnt/hda2/ccache
export PATH="/usr/local/ccache/bin:${PATH}"
--- End code ---
Exporting PATH makes use of the gcc and g++ symlinks in preference to the real gcc and g++ in /usr/local/bin, and the CCACHE_DIR you may want to set somewhere on permenant storage if your /home/tc or /root directories reside in RAM and will be lost on reboot, but that is personal preference.
By the way, this works well on TC 2.x, would it be OK if I copy it over?
robc:
--- Quote ---Thanks for uploading this.
--- End quote ---
You're welcome. I actually need this for OpenEmbedded (http://wiki.openembedded.net/index.php/Main_Page)...that is if I can get OE to work with TC.
It may be a good idea to include this with the compiletc extension since it is so small.
Jason W:
I'll go ahead and copy it over to 2.x since it is working well there.
robc:
--- Quote ---I'll go ahead and copy it over to 2.x since it is working well there.
--- End quote ---
The dep/info file will need to be changed from compiletc to gcc-binutils
Navigation
[0] Message Index
[#] Next page
Go to full version