summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-13 16:04:06 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-13 17:00:16 +0000
commitca41d22b6083b91648c7f8cb552823623dcb8e9e (patch)
tree75d76e62b918f314f5560ba93ec0fb41c2e7d5cf
parentd17290559f7d97a3801a7666ca87358478bcb986 (diff)
downloadmorph-ca41d22b6083b91648c7f8cb552823623dcb8e9e.tar.gz
Add pass1_ccache() after zlib.
-rwxr-xr-xbaserock-bootstrap25
-rw-r--r--wget-list1
2 files changed, 25 insertions, 1 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index 7d13c45b..22e981aa 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -29,7 +29,7 @@ HOST_READLINK=`which readlink`
HOST_CHMOD=`which chmod`
export CCACHE_DIR="/var/tmp/ccache"
-export PATH="$tools/bin:$tools/sbin:/usr/lib/ccache:/usr/bin:/bin"
+export PATH="$tools/lib/ccache:$tools/bin:$tools/sbin:/usr/lib/ccache:/usr/bin:/bin"
download()
{
@@ -353,6 +353,28 @@ pass1_zlib()
}
+pass1_ccache()
+{
+ echo "Building ccache"
+ if [ ! -e "$tools/bin/ccache" ]
+ then
+ unpack ccache-3.1.7
+ cd "$sources/ccache-3.1.7"
+ ./configure --prefix="$tools"
+ make -j1
+ make install
+
+ mkdir "$tools/lib/ccache"
+ for name in cc c++ gcc gcc-4.6.1 g++ g++-4.6.1; do
+ ln -s "$tools/bin/ccache" "$tools/lib/ccache/$name"
+ ln -s "$tools/bin/ccache" "$tools/lib/ccache/$LFS_TGT-$name"
+ done
+
+ rm -rf "$sources/ccache-3.1.7"
+ fi
+}
+
+
pass1_ncurses()
{
echo "Building ncurses"
@@ -1093,6 +1115,7 @@ case "$buildwhat" in
pass1_gcc_2
pass1_sanity_check
pass1_zlib
+ pass1_ccache
pass1_ncurses
#pass1_busybox
pass1_bash
diff --git a/wget-list b/wget-list
index 72a329ad..4e906ca4 100644
--- a/wget-list
+++ b/wget-list
@@ -1,3 +1,4 @@
+http://samba.org/ftp/ccache/ccache-3.1.7.tar.xz
http://roadtrain.codethink.co.uk/tarballs/eglibc-2.14.tar.bz2
http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
http://ftp.gnu.org/gnu/automake/automake-1.11.1.tar.bz2