utils/zip: fix LARGE_FILE_SUPPORT in configure script
authorp-wassi <redacted>
Sun, 20 Nov 2016 21:05:42 +0000 (22:05 +0100)
committerp-wassi <redacted>
Sun, 20 Nov 2016 21:05:42 +0000 (22:05 +0100)
commit39af758c7ebb7d6c15958b99a34d89a8e3a81ddc
tree50e86f443ca784f4910296d76e883bdeaaf5af3c
parent3e836ed93996732c73d842418d9c4b5dc6da469c
utils/zip: fix LARGE_FILE_SUPPORT in configure script

Package zip is currently broken with a runtime error.
When zip is run, it immediately exits with
"zip warning : Not supported (uzoff_t not same size as zoff_t)"

The issue boils down to the package's configure script which tries to
determine LARGE_FILE_SUPPORT on *host* side. The conftest.c is
compiled and ran on the building host to see whether LFS is given or not.
This will fail when cross-compiling. The patch here is created by Romain Naour,
taken from http://lists.busybox.net/pipermail/buildroot/2015-January/117909.html
Reworked and tested by me. Now LFS is detected and the built binaries work
on the target.

Signed-off-by: Paul Wassi <redacted>
utils/zip/Makefile
utils/zip/patches/001-unix-configure-borrow-the-LFS-test-from-autotools.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT