ccache: simplyfing package script

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-08 18:35:31 +01:00
parent 30489006b7
commit 2806af3d78

View File

@ -35,10 +35,7 @@ PKG_AUTORECONF="no"
export CC=$LOCAL_CC
makeinstall_host() {
mkdir -p $ROOT/$TOOLCHAIN/bin
cp -f ccache $ROOT/$TOOLCHAIN/bin
post_makeinstall_host() {
# setup ccache
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
@ -46,11 +43,13 @@ makeinstall_host() {
#!/bin/sh
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CC "\$@"
EOF
chmod +x $HOST_CC
cat > $HOST_CXX <<EOF
#!/bin/sh
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CXX "\$@"
EOF
chmod +x $HOST_CXX
}