mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
kodi: fix build with no-lto
This commit is contained in:
parent
b7b1a67723
commit
b781dd05a6
@ -28,8 +28,13 @@ PKG_DEPENDS_TARGET="toolchain JsonSchemaBuilder:host TexturePacker:host Python2
|
|||||||
PKG_SECTION="mediacenter"
|
PKG_SECTION="mediacenter"
|
||||||
PKG_SHORTDESC="kodi: Kodi Mediacenter"
|
PKG_SHORTDESC="kodi: Kodi Mediacenter"
|
||||||
PKG_LONGDESC="Kodi Media Center (which was formerly named Xbox Media Center or XBMC) is a free and open source cross-platform media player and home entertainment system software with a 10-foot user interface designed for the living-room TV. Its graphical user interface allows the user to easily manage video, photos, podcasts, and music from a computer, optical disk, local network, and the internet using a remote control."
|
PKG_LONGDESC="Kodi Media Center (which was formerly named Xbox Media Center or XBMC) is a free and open source cross-platform media player and home entertainment system software with a 10-foot user interface designed for the living-room TV. Its graphical user interface allows the user to easily manage video, photos, podcasts, and music from a computer, optical disk, local network, and the internet using a remote control."
|
||||||
# Single threaded LTO is very slow so rely on Kodi for LTO support
|
|
||||||
PKG_BUILD_FLAGS="-lto"
|
# Single threaded LTO is very slow so rely on Kodi for parallel LTO support
|
||||||
|
if [ "$LTO_SUPPORT" = "yes" ] && ! build_with_debug; then
|
||||||
|
PKG_KODI_USE_LTO="-DUSE_LTO=$CONCURRENCY_MAKE_LEVEL"
|
||||||
|
else
|
||||||
|
PKG_BUILD_FLAGS="-lto"
|
||||||
|
fi
|
||||||
|
|
||||||
get_graphicdrivers
|
get_graphicdrivers
|
||||||
|
|
||||||
@ -204,9 +209,6 @@ KODI_LIBDVD="$KODI_DVDCSS \
|
|||||||
-DLIBDVDNAV_URL=$SOURCES/libdvdnav/libdvdnav-$(get_pkg_version libdvdnav).tar.gz \
|
-DLIBDVDNAV_URL=$SOURCES/libdvdnav/libdvdnav-$(get_pkg_version libdvdnav).tar.gz \
|
||||||
-DLIBDVDREAD_URL=$SOURCES/libdvdread/libdvdread-$(get_pkg_version libdvdread).tar.gz"
|
-DLIBDVDREAD_URL=$SOURCES/libdvdread/libdvdread-$(get_pkg_version libdvdread).tar.gz"
|
||||||
|
|
||||||
# Build Kodi using parallel LTO
|
|
||||||
[ "$LTO_SUPPORT" = "yes" ] && ! build_with_debug && PKG_KODI_USE_LTO="-DUSE_LTO=$CONCURRENCY_MAKE_LEVEL"
|
|
||||||
|
|
||||||
PKG_CMAKE_OPTS_TARGET="-DNATIVEPREFIX=$TOOLCHAIN \
|
PKG_CMAKE_OPTS_TARGET="-DNATIVEPREFIX=$TOOLCHAIN \
|
||||||
-DWITH_TEXTUREPACKER=$TOOLCHAIN/bin/TexturePacker \
|
-DWITH_TEXTUREPACKER=$TOOLCHAIN/bin/TexturePacker \
|
||||||
-DDEPENDS_PATH=$PKG_BUILD/depends \
|
-DDEPENDS_PATH=$PKG_BUILD/depends \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user