]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
zip: Enable largefile support based on distro feature
authorKhem Raj <raj.khem@gmail.com>
Thu, 11 Aug 2022 05:54:29 +0000 (22:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Aug 2022 18:22:01 +0000 (19:22 +0100)
The configure test tries to run a binary during build to determine
largefile support, which wont work in cross-compile mode, therefore
specify it when largefile DISTRO_FEATURE is on.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-extended/zip/zip_3.0.bb

index 07a67b9634884dc01746124eb6a9289de367c12c..d560c83464bc8a0a578db937439871b470204937 100644 (file)
@@ -29,6 +29,8 @@ CVE_CHECK_IGNORE += "CVE-2018-13410"
 # Not for zip but for smart contract implementation for it
 CVE_CHECK_IGNORE += "CVE-2018-13684"
 
+CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DLARGE_FILE_SUPPORT', '', d)}"
+
 # zip.inc sets CFLAGS, but what Makefile actually uses is
 # CFLAGS_NOOPT.  It will also force -O3 optimization, overriding
 # whatever we set.