From 32cd8f0990a3339ac81408f285578e671c1c6a18 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 10 Mar 2024 16:43:40 -0400 Subject: sci-physics/bullet: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/863275 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- sci-physics/bullet/bullet-3.21.ebuild | 10 +++++++++- sci-physics/bullet/bullet-3.22b.ebuild | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'sci-physics/bullet') diff --git a/sci-physics/bullet/bullet-3.21.ebuild b/sci-physics/bullet/bullet-3.21.ebuild index ba59abb141b6..9a61fccf6b25 100644 --- a/sci-physics/bullet/bullet-3.21.ebuild +++ b/sci-physics/bullet/bullet-3.21.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="Continuous Collision Detection and Physics Library" HOMEPAGE="https://www.bulletphysics.com/" @@ -54,6 +54,14 @@ src_prepare() { } src_configure() { + # -Werror-strict-aliasing + # https://bugs.gentoo.org/863275 + # https://github.com/bulletphysics/bullet3/issues/4590 + # + # Do not trust with LTO either + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DBUILD_CPU_DEMOS=OFF -DBUILD_OPENGL3_DEMOS=OFF diff --git a/sci-physics/bullet/bullet-3.22b.ebuild b/sci-physics/bullet/bullet-3.22b.ebuild index c89db12f8617..dc16ccdb4491 100644 --- a/sci-physics/bullet/bullet-3.22b.ebuild +++ b/sci-physics/bullet/bullet-3.22b.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake toolchain-funcs +inherit cmake flag-o-matic toolchain-funcs DESCRIPTION="Continuous Collision Detection and Physics Library" HOMEPAGE="https://pybullet.org/wordpress/" @@ -52,6 +52,14 @@ src_prepare() { } src_configure() { + # -Werror-strict-aliasing + # https://bugs.gentoo.org/863275 + # https://github.com/bulletphysics/bullet3/issues/4590 + # + # Do not trust with LTO either + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DBUILD_CPU_DEMOS=OFF -DBUILD_OPENGL3_DEMOS=OFF -- cgit v1.2.3-65-gdbad