commit: cdcfeb1855998c43033042d3980d38f5f695bd91 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Mon Aug 12 01:08:47 2024 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Mon Aug 12 01:16:00 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdcfeb18
games-simulation/flightgear: mark as LTO-unsafe Closes: https://bugs.gentoo.org/859217 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> games-simulation/flightgear/flightgear-2020.3.19.ebuild | 7 ++++++- games-simulation/flightgear/flightgear-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/games-simulation/flightgear/flightgear-2020.3.19.ebuild b/games-simulation/flightgear/flightgear-2020.3.19.ebuild index fffe97177e82..9d6373a47ddb 100644 --- a/games-simulation/flightgear/flightgear-2020.3.19.ebuild +++ b/games-simulation/flightgear/flightgear-2020.3.19.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit cmake toolchain-funcs +inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="Open Source Flight Simulator" HOMEPAGE="https://www.flightgear.org/" @@ -79,6 +79,11 @@ pkg_setup() { } src_configure() { + # -Werror=lto-type-mismatch, -Werror=odr + # https://bugs.gentoo.org/859217 + # https://sourceforge.net/p/flightgear/codetickets/2908/ + filter-lto + local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF -DENABLE_AUTOTESTING=OFF diff --git a/games-simulation/flightgear/flightgear-9999.ebuild b/games-simulation/flightgear/flightgear-9999.ebuild index ec1215fc6d90..720c1042bbd6 100644 --- a/games-simulation/flightgear/flightgear-9999.ebuild +++ b/games-simulation/flightgear/flightgear-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit cmake toolchain-funcs git-r3 +inherit cmake flag-o-matic toolchain-funcs git-r3 DESCRIPTION="Open Source Flight Simulator" HOMEPAGE="https://www.flightgear.org/" @@ -80,6 +80,11 @@ pkg_setup() { } src_configure() { + # -Werror=lto-type-mismatch, -Werror=odr + # https://bugs.gentoo.org/859217 + # https://sourceforge.net/p/flightgear/codetickets/2908/ + filter-lto + local mycmakeargs=( -DBUILD_SHARED_LIBS=OFF -DENABLE_AUTOTESTING=OFF