summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-04-07 23:32:34 -0400
committerSam James <sam@gentoo.org>2024-04-08 06:21:58 +0100
commit677056ae1551e2ab9c7203ea4a4c32f7d2d59f0a (patch)
treec94110b159d043411a7b308007360c49f0e3141b /sci-libs/hdf
parentsci-libs/hdf: drop painful dead weight (diff)
downloadgentoo-677056ae1551e2ab9c7203ea4a4c32f7d2d59f0a.tar.gz
gentoo-677056ae1551e2ab9c7203ea4a4c32f7d2d59f0a.tar.bz2
gentoo-677056ae1551e2ab9c7203ea4a4c32f7d2d59f0a.zip
sci-libs/hdf: mark as LTO-unsafe, strict-aliasing unsafe
I cannot tell whether it's still a problem upstream. Too many catastrophes going on in this codebase right now. Not going to report it when I have no clue. Maybe if it could be updated for a better baseline... Closes: https://bugs.gentoo.org/862720 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/hdf')
-rw-r--r--sci-libs/hdf/hdf-4.2.15-r2.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/sci-libs/hdf/hdf-4.2.15-r2.ebuild b/sci-libs/hdf/hdf-4.2.15-r2.ebuild
index 01a74e03df73..1b395672879f 100644
--- a/sci-libs/hdf/hdf-4.2.15-r2.ebuild
+++ b/sci-libs/hdf/hdf-4.2.15-r2.ebuild
@@ -50,6 +50,14 @@ src_prepare() {
}
src_configure() {
+ # -Werror=strict-aliasing, -Werror=lto-type-mismatch
+ # https://bugs.gentoo.org/862720
+ #
+ # Do not trust with LTO either, just because of strict-aliasing.
+ # But also because it does have blatant LTO errors too.
+ append-flags -fno-strict-aliasing
+ filter-lto
+
[[ $(tc-getFC) = *gfortran ]] && append-fflags -fno-range-check
# GCC 10 workaround
# bug #723014