From b2b24de709c42ebd7ae116d2e3361a5709fa8f77 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Mon, 6 Jun 2022 14:01:26 +0200 Subject: 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: 6422e62fbc5c65a2165a72c97c880cfa9a80e957) Signed-off-by: Alexander Kanavin Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- meta/recipes-devtools/perl/perl_5.36.0.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta') diff --git a/meta/recipes-devtools/perl/perl_5.36.0.bb b/meta/recipes-devtools/perl/perl_5.36.0.bb index 05668bc966..4456cdbcfb 100644 --- a/meta/recipes-devtools/perl/perl_5.36.0.bb +++ b/meta/recipes-devtools/perl/perl_5.36.0.bb @@ -61,6 +61,7 @@ do_configure:class-target() { -Dlibpth='${libdir} ${base_libdir}' \ -Dglibpth='${libdir} ${base_libdir}' \ -Alddlflags=' ${LDFLAGS}' \ + -Dd_gnulibc=define \ ${PACKAGECONFIG_CONFARGS} #perl.c uses an ARCHLIB_EXP define to generate compile-time code that -- cgit v1.2.3-54-g00ecf