From: Khem Raj Date: Tue, 9 Aug 2022 05:41:20 +0000 (-0700) Subject: perl: Pass additional flags to enable lfs and gnu source X-Git-Tag: uninative-3.7~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=322b0a7f7a2e2c6a459deca6de0052365b1c1727;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git perl: Pass additional flags to enable lfs and gnu source These defines are needed to enable some GNU APIs and large file support is default in OE anyway Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-devtools/perl/perl_5.36.0.bb b/meta/recipes-devtools/perl/perl_5.36.0.bb index 4456cdbcfba..ead7dace165 100644 --- a/meta/recipes-devtools/perl/perl_5.36.0.bb +++ b/meta/recipes-devtools/perl/perl_5.36.0.bb @@ -45,6 +45,8 @@ PACKAGECONFIG[gdbm] = ",-Ui_gdbm,gdbm" # Don't generate comments in enc2xs output files. They are not reproducible export ENC2XS_NO_COMMENTS = "1" +CFLAGS += "-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + do_configure:prepend() { cp -rfp ${STAGING_DATADIR_NATIVE}/perl-cross/* ${S} }