[source] tools/squashfs: use host cflags

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 24 04:24:46 PDT 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/20d363aed395e07ff42fe648f898b17f2077cc82

commit 20d363aed395e07ff42fe648f898b17f2077cc82
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Oct 24 13:22:09 2017 +0200

    tools/squashfs: use host cflags
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 tools/squashfs/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/squashfs/Makefile b/tools/squashfs/Makefile
index 27adca1..87f6e8f 100644
--- a/tools/squashfs/Makefile
+++ b/tools/squashfs/Makefile
@@ -21,6 +21,7 @@ include $(INCLUDE_DIR)/host-build.mk
 define Host/Compile
 	$(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
 		CC="$(HOSTCC)" \
+		CFLAGS="$(HOST_CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I." \
 		CXX="$(CXX)" \
 		LZMAPATH=$(STAGING_DIR_HOST)/lib \
 		mksquashfs-lzma unsquashfs-lzma 



More information about the lede-commits mailing list