summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-06 02:21:02 -0500
committerSam James <sam@gentoo.org>2024-03-06 07:25:35 +0000
commit2df2ec23674da60b38a6aec7e5f1a8e5c281203b (patch)
treec8e98ce3b537b57bc16553f839a20d53bb994ff8
parentmail-mta/postfix: add 3.9_pre20240305, drop 3.9_pre20240229 (diff)
downloadgentoo-2df2ec23674da60b38a6aec7e5f1a8e5c281203b.tar.gz
gentoo-2df2ec23674da60b38a6aec7e5f1a8e5c281203b.tar.bz2
gentoo-2df2ec23674da60b38a6aec7e5f1a8e5c281203b.zip
sci-libs/scalapack: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/862924 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sci-libs/scalapack/scalapack-2.1.0.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/sci-libs/scalapack/scalapack-2.1.0.ebuild b/sci-libs/scalapack/scalapack-2.1.0.ebuild
index e102c27d3b80..843d2ff0d166 100644
--- a/sci-libs/scalapack/scalapack-2.1.0.ebuild
+++ b/sci-libs/scalapack/scalapack-2.1.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit cmake fortran-2 toolchain-funcs
+inherit cmake flag-o-matic fortran-2 toolchain-funcs
GCC10_PATCH_HASH="bc6cad585362aa58e05186bb85d4b619080c45a9"
@@ -39,6 +39,14 @@ src_prepare() {
}
src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/862924
+ # https://github.com/Reference-ScaLAPACK/scalapack/issues/95
+ #
+ # Do not trust it for LTO either.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
scalapack_configure() {
local mycmakeargs=(
-DUSE_OPTIMIZED_LAPACK_BLAS=ON