media-libs/zmusic: mark as LTO-unsafe

It's not actually LTO unsafe. Its bundled adlmidi dependency is.
Unfortunately, this package uses bundled dependencies and it's only
gotten worse in later upstream releases.

Issue still present in upstream git and in the libadlmidi source as
well.

Not currently up to figuring out how to patch the heck out of this to
devendor it, given upstream doesn't provide options for it.

Bug: https://github.com/ZDoom/ZMusic/issues/56
Closes: https://bugs.gentoo.org/860117
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-03-17 14:05:30 -04:00
committed by Sam James
parent e54678bf83
commit 0ebc968dfa

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
inherit cmake flag-o-matic
MY_PN="ZMusic"
DESCRIPTION="GZDoom's music system as a standalone library"
@@ -35,6 +35,11 @@ src_prepare() {
}
src_configure() {
# -Werror=odr
# https://bugs.gentoo.org/860117
# https://github.com/ZDoom/ZMusic/issues/56
filter-lto
local mycmakeargs=(
-DFORCE_INTERNAL_ZLIB=OFF
-DFORCE_INTERNAL_GME=ON