mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
Merge pull request #6898 from HiassofT/le11-kodi-no-ccache
fix ccache handling of kodi and gcc:bootstrap
This commit is contained in:
commit
bb49fdc74c
@ -78,6 +78,28 @@ PKG_CONFIGURE_OPTS_HOST="${GCC_COMMON_CONFIGURE_OPTS} \
|
||||
--enable-clocale=gnu \
|
||||
${TARGET_ARCH_GCC_OPTS}"
|
||||
|
||||
post_makeinstall_bootstrap() {
|
||||
GCC_VERSION=$(${TOOLCHAIN}/bin/${TARGET_NAME}-gcc -dumpversion)
|
||||
DATE="0401$(echo ${GCC_VERSION} | sed 's/\./0/g')"
|
||||
CROSS_CC=${TARGET_PREFIX}gcc-${GCC_VERSION}
|
||||
|
||||
rm -f ${TARGET_PREFIX}gcc
|
||||
|
||||
cat > ${TARGET_PREFIX}gcc <<EOF
|
||||
#!/bin/sh
|
||||
${TOOLCHAIN}/bin/ccache ${CROSS_CC} "\$@"
|
||||
EOF
|
||||
|
||||
chmod +x ${TARGET_PREFIX}gcc
|
||||
|
||||
# To avoid cache trashing
|
||||
touch -c -t ${DATE} ${CROSS_CC}
|
||||
|
||||
# install lto plugin for binutils
|
||||
mkdir -p ${TOOLCHAIN}/lib/bfd-plugins
|
||||
ln -sf ../gcc/${TARGET_NAME}/${GCC_VERSION}/liblto_plugin.so ${TOOLCHAIN}/lib/bfd-plugins
|
||||
}
|
||||
|
||||
pre_configure_host() {
|
||||
unset CPP
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ configure_package() {
|
||||
-DENABLE_UDEV=ON \
|
||||
-DENABLE_DBUS=ON \
|
||||
-DENABLE_XSLT=ON \
|
||||
-DENABLE_CCACHE=ON \
|
||||
-DENABLE_CCACHE=OFF \
|
||||
-DENABLE_LIRCCLIENT=ON \
|
||||
-DENABLE_EVENTCLIENTS=ON \
|
||||
-DENABLE_LDGOLD=ON \
|
||||
|
Loading…
x
Reference in New Issue
Block a user