diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-10 22:54:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 19:22:04 +0100 |
commit | 8cfe74e01adf895134373a10b3fa5bf84fd5cb6d (patch) | |
tree | f407569471b71b971e35d27b378bd5d08d155b8a | |
parent | f40f214e718213165de38e539e8b26de8c2f94e3 (diff) | |
download | poky-8cfe74e01adf895134373a10b3fa5bf84fd5cb6d.tar.gz |
unzip: Enable largefile support when enabled in distro
The test to determine largefile support is a runtime test which wont
work during cross-compile, therefore override the test result from
recipe
(From OE-Core rev: 740a0bcdf63606aebc07861fd563c80c11caaaef)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/unzip/unzip_6.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index 1523554089..96068eefdd 100644 --- a/meta/recipes-extended/unzip/unzip_6.0.bb +++ b/meta/recipes-extended/unzip/unzip_6.0.bb | |||
@@ -46,6 +46,8 @@ UPSTREAM_CHECK_REGEX = "unzip(?P<pver>(?!552).+)\.tgz" | |||
46 | 46 | ||
47 | S = "${WORKDIR}/unzip60" | 47 | S = "${WORKDIR}/unzip60" |
48 | 48 | ||
49 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DLARGE_FILE_SUPPORT', '', d)}" | ||
50 | |||
49 | # Makefile uses CF_NOOPT instead of CFLAGS. We lifted the values from | 51 | # Makefile uses CF_NOOPT instead of CFLAGS. We lifted the values from |
50 | # Makefile and add CFLAGS. Optimization will be overriden by unzip | 52 | # Makefile and add CFLAGS. Optimization will be overriden by unzip |
51 | # configure to be -O3. | 53 | # configure to be -O3. |