package/cloop: needs _GNU_SOURCE
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 1 Aug 2019 12:21:08 +0000 (14:21 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 1 Aug 2019 18:12:04 +0000 (20:12 +0200)
host-cloop needs _GNU_SOURCE for loff_t otherwise build fails with gcc
8.3.0 on:
extract_compressed_fs.c: In function 'main':
extract_compressed_fs.c:55:2: error: unknown type name 'loff_t'; did you mean 'off_t'?
  loff_t *offsets;

Fixes:
 - No autobuilder failures

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cloop/cloop.mk

index ad50d0a94a4e4faf95053e3d6230914d414cf0ff..585f422ce32ea9c141489a9aab6d3e15d8c3b3a0 100644 (file)
@@ -13,7 +13,8 @@ CLOOP_LICENSE_FILES = README advancecomp-1.15/COPYING
 HOST_CLOOP_DEPENDENCIES = host-zlib
 
 define HOST_CLOOP_BUILD_CMDS
-       $(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D) APPSONLY=yes
+       $(HOST_CONFIGURE_OPTS) $(MAKE1) -C $(@D) APPSONLY=yes \
+               CFLAGS="$(HOST_CFLAGS) -D_GNU_SOURCE"
 endef
 
 define HOST_CLOOP_INSTALL_CMDS