]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
perl: Pass additional flags to enable lfs and gnu source
authorKhem Raj <raj.khem@gmail.com>
Tue, 9 Aug 2022 05:41:20 +0000 (22:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Aug 2022 18:22:01 +0000 (19:22 +0100)
These defines are needed to enable some GNU APIs and large file support
is default in OE anyway

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/perl/perl_5.36.0.bb

index 4456cdbcfbac26f87006cd9239193c99be69a977..ead7dace16595fc286da40252c822173f8b8a8a7 100644 (file)
@@ -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}
 }