infozip: fix compilation with LARGE_FILE_SUPPORT
PATCH 1/1 infozip: fix compilation with LARGE_FILE_SUPPORT
--- package/infozip/infozip.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/infozip/infozip.mk +7 -1
@@ -14,9 +14,15 @@ ifeq ($(BR2_PACKAGE_BZIP2),y) INFOZIP_DEPENDENCIES += bzip2 endif +INFOZIP_CFLAGS = -I. -DUNIX + +ifeq ($(BR2_LARGEFILE),y) +INFOZIP_CFLAGS += -DLARGE_FILE_SUPPORT +endif + define INFOZIP_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ - CFLAGS="$(TARGET_CFLAGS) -I. -DUNIX" \ + CFLAGS="$(TARGET_CFLAGS) $(INFOZIP_CFLAGS)" \ AS="$(TARGET_CC) -c" \ -f unix/Makefile generic endef
Signature · 1 line
2.0.0
PATCH 1/1 infozip: fix compilation with LARGE_FILE_SUPPORT
Dear Richard Genoud,
package/infozip/infozip.mk ifeq ($(BR2_PACKAGE_BZIP2),y) · line 21
Quoted 5 lines · Richard Genoud
package/infozip/infozip.mk +5
-0+INFOZIP_CFLAGS = -I. -DUNIX + +ifeq ($(BR2_LARGEFILE),y) +INFOZIP_CFLAGS += -DLARGE_FILE_SUPPORT +endif
Things are not really clear: the INSTALL file from infozip says:
This flag should be set automatically on Unix, Win32, and some other ports. Setting NO_LARGE_FILE_SUPPORT turns this flag off.
So according to this, it should not be necessary to set this flag explicitly. However, after a quick look at the unix/configure script, I haven't seen any logic doing this. Can you confirm?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 infozip: fix compilation with LARGE_FILE_SUPPORT
Richard, Thomas,
Le 20/01/2015 17:41, Thomas Petazzoni a ?crit :
Quoted 15 lines
Dear Richard Genoud,
package/infozip/infozip.mk ifeq ($(BR2_PACKAGE_BZIP2),y) · line 21
Quoted 5 lines · Richard Genoud
package/infozip/infozip.mk +5
-0+INFOZIP_CFLAGS = -I. -DUNIX + +ifeq ($(BR2_LARGEFILE),y) +INFOZIP_CFLAGS += -DLARGE_FILE_SUPPORT +endifThings are not really clear: the INSTALL file from infozip says:
This flag should be set automatically on Unix, Win32, and some other ports. Setting
NO_LARGE_FILE_SUPPORTturns this flag off.
Quoted 8 lines
So according to this, it should not be necessary to set this flag explicitly. However, after a quick look at the unix/configure script, I haven't seen any logic doing this. Can you confirm?
Thanks,
Thomas
Sorry, I made a mistake in commit cc4dedd9...
This week I updated from 2013.08 to 2014.11 and I had a runtime error with zip:
"zip warning : Not supported (uzoff_t not same size as zoff_t)"
I'm sending a series to fit this.
Best regards,
Romain Naour