commit:     28d6c27f171133bb0f3c2c9330960211630d2840
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 22 02:20:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 22 02:20:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28d6c27f

dev-lang/perl: pass -D_GNU_SOURCE for the cross build for CHOST too

We need it there as well.

Bug: https://bugs.gentoo.org/913171
Closes: https://bugs.gentoo.org/932385
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/perl/perl-5.38.2-r5.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-lang/perl/perl-5.38.2-r5.ebuild 
b/dev-lang/perl/perl-5.38.2-r5.ebuild
index 7d4eea184691..37a04465b8e2 100644
--- a/dev-lang/perl/perl-5.38.2-r5.ebuild
+++ b/dev-lang/perl/perl-5.38.2-r5.ebuild
@@ -627,6 +627,9 @@ src_configure() {
        if tc-is-cross-compiler; then
                append-cflags "-fwrapv"
 
+               # Needed for the CHOST build too (bug #932385)
+               export CFLAGS="${CFLAGS} -D_GNU_SOURCE"
+
                # bug #913171
                export HOSTCFLAGS="${CFLAGS_FOR_BUILD} -D_GNU_SOURCE"
        fi

Reply via email to