]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
perl: enable _GNU_SOURCE define via d_gnulibc
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 12 May 2025 21:37:54 +0000 (14:37 -0700)
committerSteve Sakoman <steve@sakoman.com>
Tue, 13 May 2025 13:41:55 +0000 (06:41 -0700)
commit79dc3f42958bfefe03a8240e2a57501c38d2bd3c
tree6969e9e84aa63a3ee625984fae07c2082f3074eb
parent1403ffa42014ad5c88c28da6c360ea5fd1857147
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.

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>
meta/recipes-devtools/perl/perl_5.34.3.bb