dev-perl/Math-Pari: mark as LTO-unsafe, strict-aliasing unsafe

Bundled libs have aliasing violations.

Closes: https://bugs.gentoo.org/856112
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2026-01-02 15:31:31 -05:00
parent fd4e1e6245
commit fd90a46e91
3 changed files with 20 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,7 +7,7 @@ DIST_AUTHOR=ILYAZ
DIST_SECTION=modules
DIST_VERSION=2.01080900
DIST_A_EXT=zip
inherit perl-module toolchain-funcs
inherit flag-o-matic perl-module toolchain-funcs
PARI_VER=2.3.5
@@ -60,6 +60,11 @@ src_prepare() {
}
src_configure() {
# -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
# https://bugs.gentoo.org/856112
append-flags -fno-strict-aliasing
filter-lto
# Unfortunately the assembly routines math-pari has for SPARC do not appear
# to be working at current. Perl cannot test math-pari or anything that
# pulls in the math-pari module as DynaLoader cannot load the resulting

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
DIST_AUTHOR=ILYAZ
DIST_SECTION=modules
DIST_VERSION=2.030523
inherit perl-module toolchain-funcs
inherit flag-o-matic perl-module toolchain-funcs
PARI_VER=2.3.5
@@ -53,6 +53,11 @@ src_prepare() {
}
src_configure() {
# -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
# https://bugs.gentoo.org/856112
append-flags -fno-strict-aliasing
filter-lto
# Unfortunately the assembly routines math-pari has for SPARC do not appear
# to be working at current. Perl cannot test math-pari or anything that
# pulls in the math-pari module as DynaLoader cannot load the resulting

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -58,6 +58,11 @@ src_configure() {
# bug #1234
append-cflags -std=gnu17
# -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
# https://bugs.gentoo.org/856112
append-flags -fno-strict-aliasing
filter-lto
# Unfortunately the assembly routines math-pari has for SPARC do not appear
# to be working at current. Perl cannot test math-pari or anything that
# pulls in the math-pari module as DynaLoader cannot load the resulting