manage build cross compile build errors:
- CMake Error: try_run() invoked in cross-compiling mode, please set
the following cache variables appropriately
variables required to be defined
LSTAT_FOLLOWS_SLASHED_SYMLINK_EXITCODE=0
LSTAT_FOLLOWS_SLASHED_SYMLINK_EXITCODE__TRYRUN_OUTPUT=“”
MASK_LONGDOUBLE_EXITCODE=0
MASK_LONGDOUBLE_EXITCODE__TRYRUN_OUTPUT=“”
STAT_EMPTY_STRING_BUG_EXITCODE=0
STAT_EMPTY_STRING_BUG_EXITCODE__TRYRUN_OUTPUT=“”
add flag "-o" to overwrite file on unzipping.
when a build is interrupted by some issues, it will cause a re-substitution problem after a rebuild the target whose source code come from a zip file (like target jzintv)
Commit 98a96ef1f7 ("kodi: use cmake")
incorrectly switched kodi's internal ccache usage from off to on,
resulting in the compiler being double-wrapped in ccache.
As our gcc ccache wrappers will get a new timestamp on each clean
rebuild this also meant ccache was practically disabled (as the
"compiler"'s mtime changed), leading to about 1400 cache misses,
unnecessary rebuilds, about 1GB of data being added to the cache
and rather long rebuild times.
Fix this by configuring kodi with -DENABLE_CCACHE=ON matching the
previous --disable-ccache we had before switching to cmake.
Signed-off-by: Matthias Reichl <hias@horus.com>