commit:     e5ab300727fab5ddee35788321c4a26007256d61
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 12 03:55:34 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Aug 14 05:01:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5ab3007

dev-debug/gfxreconstruct: mark as strict-aliasing unsafe, LTO-unsafe

Closes: https://bugs.gentoo.org/956019
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-debug/gfxreconstruct/gfxreconstruct-1.4.313.0.ebuild | 8 +++++++-
 dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild      | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dev-debug/gfxreconstruct/gfxreconstruct-1.4.313.0.ebuild 
b/dev-debug/gfxreconstruct/gfxreconstruct-1.4.313.0.ebuild
index 4b816f30cecc..f097e273b43a 100644
--- a/dev-debug/gfxreconstruct/gfxreconstruct-1.4.313.0.ebuild
+++ b/dev-debug/gfxreconstruct/gfxreconstruct-1.4.313.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{11..14} )
-inherit cmake
+inherit cmake flag-o-matic
 
 if [[ ${PV} == 9999* ]]; then
        EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git";
@@ -63,6 +63,12 @@ src_unpack() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/956019
+       # https://github.com/LunarG/gfxreconstruct/issues/2358
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON
                -DBUILD_WERROR=OFF

diff --git a/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild 
b/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild
index 4b816f30cecc..f097e273b43a 100644
--- a/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild
+++ b/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{11..14} )
-inherit cmake
+inherit cmake flag-o-matic
 
 if [[ ${PV} == 9999* ]]; then
        EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git";
@@ -63,6 +63,12 @@ src_unpack() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/956019
+       # https://github.com/LunarG/gfxreconstruct/issues/2358
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON
                -DBUILD_WERROR=OFF

Reply via email to