dev-perl/PDL: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/856406
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz 2024-03-27 00:01:44 -04:00 committed by Sam James
parent cb62302495
commit 599e1dc43d
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -9,7 +9,7 @@ DIST_EXAMPLES=( "Example/*" )
FORTRAN_NEEDED=fortran
inherit perl-module fortran-2
inherit flag-o-matic perl-module fortran-2
DESCRIPTION="Perl Data Language for scientific computing"
@ -97,6 +97,11 @@ src_prepare() {
}
src_configure() {
# -Werror=lto-type-mismatch
# https://bugs.gentoo.org/856406
# https://github.com/PDLPorters/pdl/issues/468
filter-lto
sed -i \
-e '/USE_POGL/s/=>.*/=> 1,/' \
-e "/WITH_3D/s/=>.*/=> 1,/" \