diff options
author | Craig Andrews <candrews@gentoo.org> | 2021-02-01 11:00:50 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2021-02-01 11:07:18 -0500 |
commit | ef86562c782800605e09965c9ba345afe69a7090 (patch) | |
tree | 482a86c0b948debcd3b8ba532c7c4708b9e32786 /media-tv | |
parent | media-tv/kodi: Add power-control USE flag (diff) | |
download | gentoo-ef86562c782800605e09965c9ba345afe69a7090.tar.gz gentoo-ef86562c782800605e09965c9ba345afe69a7090.tar.bz2 gentoo-ef86562c782800605e09965c9ba345afe69a7090.zip |
media-tv/kodi: fixed defines
Kodi needs one of the defines 'NDEBUG' or '_DEBUG'
This fixes "Using Unknown Kodi x64" strings in Kodi log.
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Evgeny Grin <k2k@narod.ru>
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-tv')
-rw-r--r-- | media-tv/kodi/kodi-9999.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild index 843cafa26244..9c046b5a760a 100644 --- a/media-tv/kodi/kodi-9999.ebuild +++ b/media-tv/kodi/kodi-9999.ebuild @@ -277,6 +277,11 @@ src_configure() { mycmakeargs+=( -DFFMPEG_URL="${DISTDIR}/ffmpeg-${PN}-${FFMPEG_VERSION}-${CODENAME}-${FFMPEG_KODI_VERSION}.tar.gz" ) fi + if ! echo "${CFLAGS}" | grep -Fwqe '-DNDEBUG' - && ! echo "${CFLAGS}" | grep -Fwqe '-D_DEBUG' - ; then + CFLAGS+=' -DNDEBUG' # Kodi requires one of the 'NDEBUG' or '_DEBUG' defines + CXXFLAGS+=' -DNDEBUG' + fi + cmake_src_configure } |