Revision: 5370
http://ipcop.svn.sourceforge.net/ipcop/?rev=5370&view=rev
Author: gespinasse
Date: 2011-01-25 19:26:19 +0000 (Tue, 25 Jan 2011)
Log Message:
-----------
Move env check at the beginning, better to check before that may break.
Add a comment why we disable ac_cv_func_getpwuid
Add a comment that we need triplet symlink later made
Add how to calculate the max-size
Finally, set ccache max-size, we have some margin with 1.5 GB
Modified Paths:
--------------
ipcop/trunk/lfs/ccache
Modified: ipcop/trunk/lfs/ccache
===================================================================
--- ipcop/trunk/lfs/ccache 2011-01-25 19:20:55 UTC (rev 5369)
+++ ipcop/trunk/lfs/ccache 2011-01-25 19:26:19 UTC (rev 5370)
@@ -42,6 +42,7 @@
DL_FROM = http://samba.org/ftp/ccache
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
PREFIX = /$(TOOLS_DIR)/usr
###############################################################################
@@ -83,12 +84,17 @@
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+ # to check the build environment,show toolchain_make existing variables
+ env
+
# Not all toolchain packages are equal to run on every machines
# Because ccache is compiled static, we inherit the --enable-kernel passed to host glibc
# for example on debian 5 (lenny), file build_i486/tools_i486/usr/bin/ccache show
# ELF 32-bit LSB executable ... for GNU/Linux 2.6.8
# libz will not being detected if libz.h is not installed : bundled zlib will be build
+ # ac_cv_func_getpwuid=no allow to not depend on host libc
+ # and does not look required : without CCACHE_DIR (that we use), ccache write stats in $HOME
cd $(DIR_APP) && CFLAGS="-O2 -static" ac_cv_func_getpwuid=no ./configure --prefix=$(PREFIX)
cd $(DIR_APP) && make
cd $(DIR_APP) && make install
@@ -96,9 +102,16 @@
ln -sf ccache $(PREFIX)/bin/g++
ln -sf ccache $(PREFIX)/bin/cc
ln -sf ccache $(PREFIX)/bin/c++
+ # triplet symlinks will be created later once gcc is compiled.
+ # This is required when configure is used with --build
- # show toolchain_make existing variables
- env
+ # To find which size is needed, set first a max-size bigger than required. Then run
+ # ./make.sh ccache_clean && ./make.sh clean && ./make.sh toolchain && ./make.sh build
+ # Look at 'cache size' for the last package in ccache-stats.log
+ # Running test add less than 10% in cache size but more time.
+ # When near max-size, old hit are removed until 15% lower than max, so add at least 15%
+ # The 25/01/2011, I find 1.1 G size (with tests run )
+ $(PREFIX)/bin/ccache --max-size 1.5 G
@rm -rf $(DIR_APP)
@$(POSTBUILD)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|