ccache: dont use $HOST_C* variables

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2016-09-23 14:29:49 -07:00 committed by Lukas Rusak
parent 31aef4178a
commit 16c3b47e15
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -33,6 +33,7 @@ PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
export CC=$LOCAL_CC
export CXX=$LOCAL_CXX
PKG_CONFIGURE_OPTS_HOST="--with-bundled-zlib"
@ -40,17 +41,17 @@ post_makeinstall_host() {
# setup ccache
$ROOT/$TOOLCHAIN/bin/ccache --max-size=$CCACHE_CACHE_SIZE
cat > $HOST_CC <<EOF
cat > $ROOT/$TOOLCHAIN/bin/host-gcc <<EOF
#!/bin/sh
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CC "\$@"
$ROOT/$TOOLCHAIN/bin/ccache $CC "\$@"
EOF
chmod +x $HOST_CC
chmod +x $ROOT/$TOOLCHAIN/bin/host-gcc
cat > $HOST_CXX <<EOF
cat > $ROOT/$TOOLCHAIN/bin/host-g++ <<EOF
#!/bin/sh
$ROOT/$TOOLCHAIN/bin/ccache $LOCAL_CXX "\$@"
$ROOT/$TOOLCHAIN/bin/ccache $CXX "\$@"
EOF
chmod +x $HOST_CXX
chmod +x $ROOT/$TOOLCHAIN/bin/host-g++
}