summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2025-05-12 14:37:54 -0700
committerSteve Sakoman <steve@sakoman.com>2025-05-16 08:58:06 -0700
commitd6a242831e78fae1a5cfcf8a6bdf5137a2422a28 (patch)
tree099d839513c52d83cfbc179b7d54e19c476f8126
parent06b97d608e43ed6a6428158eb298587085c9a011 (diff)
downloadpoky-d6a242831e78fae1a5cfcf8a6bdf5137a2422a28.tar.gz
perl: enable _GNU_SOURCE define via d_gnulibc
This is needed to properly support memmem() and friends under musl as musl guards the declarations with _GNU_SOURCE define, and if the declarations are not present, gcc will issue warnings and generate assembly that assumes the functions return int (instead of e.g. void*), with catastrophic consequences at runtime. (From OE-Core rev: 79dc3f42958bfefe03a8240e2a57501c38d2bd3c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6422e62fbc5c65a2165a72c97c880cfa9a80e957) Signed-off-by: Peter Hurley <peter@meraki.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-devtools/perl/perl_5.34.3.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.34.3.bb b/meta/recipes-devtools/perl/perl_5.34.3.bb
index f6ebbf2d16..c8475fc450 100644
--- a/meta/recipes-devtools/perl/perl_5.34.3.bb
+++ b/meta/recipes-devtools/perl/perl_5.34.3.bb
@@ -70,6 +70,7 @@ do_configure:class-target() {
70 -Dlibpth='${libdir} ${base_libdir}' \ 70 -Dlibpth='${libdir} ${base_libdir}' \
71 -Dglibpth='${libdir} ${base_libdir}' \ 71 -Dglibpth='${libdir} ${base_libdir}' \
72 -Alddlflags=' ${LDFLAGS}' \ 72 -Alddlflags=' ${LDFLAGS}' \
73 -Dd_gnulibc=define \
73 ${PACKAGECONFIG_CONFARGS} 74 ${PACKAGECONFIG_CONFARGS}
74 75
75 #perl.c uses an ARCHLIB_EXP define to generate compile-time code that 76 #perl.c uses an ARCHLIB_EXP define to generate compile-time code that