Message ID | 20220606120126.3381438-21-alex@linutronix.de |
---|---|
State | Accepted, archived |
Commit | 6422e62fbc5c65a2165a72c97c880cfa9a80e957 |
Headers | show |
Series | [01/21] sato: work around missing icons in adwaita 42.0 | expand |
diff --git a/meta/recipes-devtools/perl/perl_5.36.0.bb b/meta/recipes-devtools/perl/perl_5.36.0.bb index cb82cad36c..60785c72a5 100644 --- a/meta/recipes-devtools/perl/perl_5.36.0.bb +++ b/meta/recipes-devtools/perl/perl_5.36.0.bb @@ -59,6 +59,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
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> --- meta/recipes-devtools/perl/perl_5.36.0.bb | 1 + 1 file changed, 1 insertion(+)