summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-11 03:11:13 +0100
committerSam James <sam@gentoo.org>2024-05-11 03:11:13 +0100
commit9b1dea036a1fba87623a59be76dc588595f9c65a (patch)
tree1c1e96b05e4f3fe6851f57adf63cdaea0322d3f1 /dev-lang
parentsys-fs/zfs: Stabilize 2.2.3 ppc64, #931699 (diff)
downloadgentoo-9b1dea036a1fba87623a59be76dc588595f9c65a.tar.gz
gentoo-9b1dea036a1fba87623a59be76dc588595f9c65a.tar.bz2
gentoo-9b1dea036a1fba87623a59be76dc588595f9c65a.zip
dev-lang/perl: filter out -ftrapv
People shouldn't really pass -ftrapv in global flags anyway but let's filter out -ftrapv in Perl specifically given we know it requires -fwrapv semantics and it even passes that during the build, but -ftrapv if set by the user will be appended and take precdence... Bug: https://bugs.gentoo.org/928904 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/perl-5.38.2-r5.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-lang/perl/perl-5.38.2-r5.ebuild b/dev-lang/perl/perl-5.38.2-r5.ebuild
index e916a815eb2a..7d4eea184691 100644
--- a/dev-lang/perl/perl-5.38.2-r5.ebuild
+++ b/dev-lang/perl/perl-5.38.2-r5.ebuild
@@ -563,6 +563,9 @@ src_configure() {
# However, the darwin prefix people have no locale.h ...
use elibc_glibc && myconf -Ui_xlocale
+ # Perl relies on -fwrapv semantics
+ filter-flags -ftrapv
+
# This flag makes compiling crash in interesting ways
filter-flags "-malign-double"