squashfs-tools: Pass down TARGET_CFLAGS, CPPFLAGS and LDFLAGs
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 5 Jun 2017 20:25:45 +0000 (13:25 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 6 Jun 2017 00:18:51 +0000 (17:18 -0700)
commit5374d8635dc00afa68e6d3467263129f75ce3ffb
treec4a2e310c9e240cf987a4381e179babf3880de3d
parentfdd3f3f7f955266333b1957be93d3cd58a88ef85
squashfs-tools: Pass down TARGET_CFLAGS, CPPFLAGS and LDFLAGs

This fixes build errors with external toolchains that don't
automatically search for headers in STAGING_DIR:

mipsel-linux-gnu-gcc   -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT   -c -o
gzip_wrapper.o gzip_wrapper.c
gzip_wrapper.c:27:18: fatal error: zlib.h: No such file or directory
 #include <zlib.h>
                  ^
compilation terminated.
make[3]: *** [gzip_wrapper.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
utils/squashfs-tools/Makefile