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>
This commit is contained in:
Eli Schwartz
2024-04-07 23:32:34 -04:00
committed by Sam James
parent 24a7e5c2de
commit 677056ae15

View File

@@ -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