diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2023-06-19 12:35:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-21 18:38:25 +0100 |
commit | 9c6d3c68d030d59b763b7a66e5139b1df5c7e397 (patch) | |
tree | ea7737627dd6e68686a9c88dbbeb9b08b99a1418 /meta/recipes-extended/zip/zip_3.0.bb | |
parent | c9ac3632b27e34ff4da34a8d8593decfb45573ae (diff) | |
download | poky-9c6d3c68d030d59b763b7a66e5139b1df5c7e397.tar.gz |
zip: fix configure check by using _Static_assert
It's incorrect to run a cross-compiled program on build machine
to check if some feature is available or not. As these two checks
in zip are basically just checking the size, we can use _Static_assert
and sizeof to do such check at compile time.
(From OE-Core rev: dda778d855b1838ae3004a9af310724b913490b4)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/zip/zip_3.0.bb')
-rw-r--r-- | meta/recipes-extended/zip/zip_3.0.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb index 1930a40140..802877285f 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb | |||
@@ -19,6 +19,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar. | |||
19 | file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \ | 19 | file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \ |
20 | file://0001-configure-Specify-correct-function-signatures-and-de.patch \ | 20 | file://0001-configure-Specify-correct-function-signatures-and-de.patch \ |
21 | file://0002-unix.c-Do-not-redefine-DIR-as-FILE.patch \ | 21 | file://0002-unix.c-Do-not-redefine-DIR-as-FILE.patch \ |
22 | file://0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch \ | ||
22 | " | 23 | " |
23 | UPSTREAM_VERSION_UNKNOWN = "1" | 24 | UPSTREAM_VERSION_UNKNOWN = "1" |
24 | 25 | ||