squashfs: pass CFLAGS/LDFLAGS and add host-zlib dependency
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 26 Feb 2010 07:36:38 +0000 (08:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 26 Feb 2010 07:52:22 +0000 (08:52 +0100)
commitbe8a104c3cd65190e32aebcbc8430fb23c42361f
tree1e6f400f87f7005c7a3cf381669dd36c174d30de
parentc4ba3fdae5a576ed26815a3ef637614b2017fc18
squashfs: pass CFLAGS/LDFLAGS and add host-zlib dependency

Squashfs depends on host-zlib, so we add this as a dependency. As
host-zlib is installed in $(HOST_DIR), we must pass $(HOST_CFLAGS) and
$(HOST_LDFLAGS).

Unfortunately, if we pass CFLAGS=$(HOST_CFLAGS), we override the
CFLAGS defined in the Makefile, and the build fails. Therefore, we
borrow a patch from OpenEmbedded to fix this problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
target/squashfs/squashfs-4.0-build-system-fix.patch [new file with mode: 0644]
target/squashfs/squashfsroot.mk