0211f1b83e
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>
(cherry picked from commit edf97df877
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
27 lines
836 B
Makefile
27 lines
836 B
Makefile
################################################################################
|
|
#
|
|
# cloop
|
|
#
|
|
################################################################################
|
|
|
|
CLOOP_VERSION = 2.634-1
|
|
CLOOP_SOURCE = cloop_$(CLOOP_VERSION).tar.gz
|
|
CLOOP_SITE = http://debian-knoppix.alioth.debian.org/packages/sources/cloop
|
|
CLOOP_LICENSE = GPL-2.0 (module), GPL-2.0+ (advancecomp)
|
|
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 \
|
|
CFLAGS="$(HOST_CFLAGS) -D_GNU_SOURCE"
|
|
endef
|
|
|
|
define HOST_CLOOP_INSTALL_CMDS
|
|
$(INSTALL) -m 0755 -d $(HOST_DIR)/bin
|
|
$(INSTALL) -m 755 $(@D)/create_compressed_fs $(HOST_DIR)/bin
|
|
$(INSTALL) -m 755 $(@D)/extract_compressed_fs $(HOST_DIR)/bin
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|