summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/zip/zip_3.0.bb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2023-06-19 12:35:53 +0800
committerSteve Sakoman <steve@sakoman.com>2023-07-21 06:27:34 -1000
commit4b4b09c2be34d2bccd77d375c9c29b3461ca7f24 (patch)
tree288d49cbf074e03ef8562417cc2366ebbce9a07e /meta/recipes-extended/zip/zip_3.0.bb
parent43ce6be661a0ae67b428503a2381c9d1e44549dd (diff)
downloadpoky-4b4b09c2be34d2bccd77d375c9c29b3461ca7f24.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: 6f5986fb520ab89b0950d3e0fa8492de4de7798f) 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> (cherry picked from commit dda778d855b1838ae3004a9af310724b913490b4) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-extended/zip/zip_3.0.bb')
-rw-r--r--meta/recipes-extended/zip/zip_3.0.bb1
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 07a67b9634..83e1e52e97 100644
--- a/meta/recipes-extended/zip/zip_3.0.bb
+++ b/meta/recipes-extended/zip/zip_3.0.bb
@@ -17,6 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.
17 file://0001-configure-use-correct-CPP.patch \ 17 file://0001-configure-use-correct-CPP.patch \
18 file://0002-configure-support-PIC-code-build.patch \ 18 file://0002-configure-support-PIC-code-build.patch \
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-unix-configure-use-_Static_assert-to-do-correct-dete.patch \
20 " 21 "
21UPSTREAM_VERSION_UNKNOWN = "1" 22UPSTREAM_VERSION_UNKNOWN = "1"
22 23