commit:     dde18ab04c546545dfae709f39d7bf029662a541
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 12 01:21:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 02:24:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dde18ab0

dev-libs/rocr-runtime: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/856091
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/rocr-runtime/rocr-runtime-5.7.1-r2.ebuild | 5 +++++
 dev-libs/rocr-runtime/rocr-runtime-6.0.0-r1.ebuild | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.7.1-r2.ebuild 
b/dev-libs/rocr-runtime/rocr-runtime-5.7.1-r2.ebuild
index edaaebfdc50f..b22b60ffa24f 100644
--- a/dev-libs/rocr-runtime/rocr-runtime-5.7.1-r2.ebuild
+++ b/dev-libs/rocr-runtime/rocr-runtime-5.7.1-r2.ebuild
@@ -48,6 +48,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/856091
+       # https://github.com/ROCm/ROCR-Runtime/issues/182
+       filter-lto
+
        use debug || append-cxxflags "-DNDEBUG"
        local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF )
        cmake_src_configure

diff --git a/dev-libs/rocr-runtime/rocr-runtime-6.0.0-r1.ebuild 
b/dev-libs/rocr-runtime/rocr-runtime-6.0.0-r1.ebuild
index 02da6889b8cd..374dcec97554 100644
--- a/dev-libs/rocr-runtime/rocr-runtime-6.0.0-r1.ebuild
+++ b/dev-libs/rocr-runtime/rocr-runtime-6.0.0-r1.ebuild
@@ -47,6 +47,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/856091
+       # https://github.com/ROCm/ROCR-Runtime/issues/182
+       filter-lto
+
        use debug || append-cxxflags "-DNDEBUG"
        local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF )
        cmake_src_configure

Reply via email to