diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-06-06 14:01:26 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-07 21:21:55 +0100 |
| commit | b2b24de709c42ebd7ae116d2e3361a5709fa8f77 (patch) | |
| tree | 2ad080f8b4818ccc5b7b5b6ab77d7c797723c1d2 /meta/recipes-devtools/perl | |
| parent | 6b9af87f3eb86faf80fe14f993ca90fc7464bfcb (diff) | |
| download | poky-b2b24de709c42ebd7ae116d2e3361a5709fa8f77.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: 6422e62fbc5c65a2165a72c97c880cfa9a80e957)
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>
Diffstat (limited to 'meta/recipes-devtools/perl')
| -rw-r--r-- | meta/recipes-devtools/perl/perl_5.36.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
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() { | |||
| 61 | -Dlibpth='${libdir} ${base_libdir}' \ | 61 | -Dlibpth='${libdir} ${base_libdir}' \ |
| 62 | -Dglibpth='${libdir} ${base_libdir}' \ | 62 | -Dglibpth='${libdir} ${base_libdir}' \ |
| 63 | -Alddlflags=' ${LDFLAGS}' \ | 63 | -Alddlflags=' ${LDFLAGS}' \ |
| 64 | -Dd_gnulibc=define \ | ||
| 64 | ${PACKAGECONFIG_CONFARGS} | 65 | ${PACKAGECONFIG_CONFARGS} |
| 65 | 66 | ||
| 66 | #perl.c uses an ARCHLIB_EXP define to generate compile-time code that | 67 | #perl.c uses an ARCHLIB_EXP define to generate compile-time code that |
