commit: c2e0ed6e7931931991d0526a4654105b34bff9d6
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 25 01:26:53 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Jul 26 05:04:39 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2e0ed6e
media-gfx/openscad: mark as LTO-unsafe
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
media-gfx/openscad/openscad-2021.01-r5.ebuild | 6 +++++-
media-gfx/openscad/openscad-9999.ebuild | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/media-gfx/openscad/openscad-2021.01-r5.ebuild
b/media-gfx/openscad/openscad-2021.01-r5.ebuild
index cf272f31a4f7..ebb1462233ab 100644
--- a/media-gfx/openscad/openscad-2021.01-r5.ebuild
+++ b/media-gfx/openscad/openscad-2021.01-r5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit elisp-common qmake-utils xdg
+inherit elisp-common flag-o-matic qmake-utils xdg
SITEFILE="50${PN}-gentoo.el"
@@ -71,6 +71,10 @@ PATCHES=(
)
src_configure() {
+ # -Werror=odr
+ # https://github.com/openscad/openscad/issues/5239
+ filter-lto
+
if has ccache ${FEATURES}; then
eqmake5 "PREFIX = ${ESYSROOT}/usr" "CONFIG += ccache"
"${PN}.pro"
else
diff --git a/media-gfx/openscad/openscad-9999.ebuild
b/media-gfx/openscad/openscad-9999.ebuild
index 2322d4b21967..47c9d93adc5e 100644
--- a/media-gfx/openscad/openscad-9999.ebuild
+++ b/media-gfx/openscad/openscad-9999.ebuild
@@ -8,7 +8,7 @@
EAPI=8
-inherit cmake git-r3 optfeature xdg
+inherit cmake flag-o-matic git-r3 optfeature xdg
DESCRIPTION="The Programmers Solid 3D CAD Modeller"
HOMEPAGE="https://www.openscad.org/"
@@ -82,6 +82,10 @@ DOCS=(
)
src_configure() {
+ # -Werror=odr
+ # https://github.com/openscad/openscad/issues/5239
+ filter-lto
+
local mycmakeargs=(
-DCLANG_TIDY=OFF
-DENABLE_CAIRO=$(usex cairo)