openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] zip: Enable largefile support based on distro feature
@ 2022-08-11  5:54 Khem Raj
  2022-08-11  5:54 ` [PATCH 2/5] zip: Make configure checks to be more robust Khem Raj
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Khem Raj @ 2022-08-11  5:54 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

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>
---
 meta/recipes-extended/zip/zip_3.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb
index 07a67b96348..d560c83464b 100644
--- a/meta/recipes-extended/zip/zip_3.0.bb
+++ b/meta/recipes-extended/zip/zip_3.0.bb
@@ -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.
-- 
2.37.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-12 20:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11  5:54 [PATCH 1/5] zip: Enable largefile support based on distro feature Khem Raj
2022-08-11  5:54 ` [PATCH 2/5] zip: Make configure checks to be more robust Khem Raj
2022-08-11  5:54 ` [PATCH 3/5] unzip: Fix configure tests to use modern C Khem Raj
2022-08-11  5:54 ` [PATCH 4/5] unzip: Enable largefile support when enabled in distro Khem Raj
2022-08-11  5:54 ` [PATCH 5/5] iproute2: Fix netns check during configure Khem Raj
2022-08-12 20:24 ` [OE-core] [PATCH 1/5] zip: Enable largefile support based on distro feature Andre McCurdy
2022-08-12 20:31   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).