summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-28 13:36:37 +0100
committerSam James <sam@gentoo.org>2022-10-28 13:37:31 +0100
commit28d674673b7e0198d2770ec5a780966555dbbc6a (patch)
tree19b0c5875f24f0f6878958656d682f87452a6efe /dev-lang/perl
parentdev-lang/perl: drop 5.34.0-r9, 5.34.0-r10, 5.34.0-r11, 5.34.1-r2 (diff)
downloadgentoo-28d674673b7e0198d2770ec5a780966555dbbc6a.tar.gz
gentoo-28d674673b7e0198d2770ec5a780966555dbbc6a.tar.bz2
gentoo-28d674673b7e0198d2770ec5a780966555dbbc6a.zip
dev-lang/perl: always pass -fno-strict-aliasing
We keep getting these bugs where it turns out the build system didn't pass it for us, so just unconditionally do it. Closes: https://bugs.gentoo.org/877659 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/perl')
-rw-r--r--dev-lang/perl/perl-5.34.1-r4.ebuild (renamed from dev-lang/perl/perl-5.34.1-r3.ebuild)5
-rw-r--r--dev-lang/perl/perl-5.36.0-r1.ebuild (renamed from dev-lang/perl/perl-5.36.0.ebuild)5
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-lang/perl/perl-5.34.1-r3.ebuild b/dev-lang/perl/perl-5.34.1-r4.ebuild
index c92f6b9c1571..608bf4e02465 100644
--- a/dev-lang/perl/perl-5.34.1-r3.ebuild
+++ b/dev-lang/perl/perl-5.34.1-r4.ebuild
@@ -600,9 +600,12 @@ src_configure() {
# modifying 'optimize' prevents cross configure script from appending required flags
if tc-is-cross-compiler; then
- append-cflags "-fwrapv -fno-strict-aliasing"
+ append-cflags "-fwrapv"
fi
+ # bug #877659, bug #821577
+ append-cflags -fno-strict-aliasing
+
# Autodiscover all old version directories, some of them will even be newer
# if you downgrade
if [[ -z ${PERL_OLDVERSEN} ]]; then
diff --git a/dev-lang/perl/perl-5.36.0.ebuild b/dev-lang/perl/perl-5.36.0-r1.ebuild
index bcc7e531057a..1ae7dd84b33a 100644
--- a/dev-lang/perl/perl-5.36.0.ebuild
+++ b/dev-lang/perl/perl-5.36.0-r1.ebuild
@@ -583,9 +583,12 @@ src_configure() {
# modifying 'optimize' prevents cross configure script from appending required flags
if tc-is-cross-compiler; then
- append-cflags "-fwrapv -fno-strict-aliasing"
+ append-cflags "-fwrapv"
fi
+ # bug #877659, bug #821577
+ append-cflags -fno-strict-aliasing
+
# Autodiscover all old version directories, some of them will even be newer
# if you downgrade
if [[ -z ${PERL_OLDVERSEN} ]]; then