summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-26 07:35:26 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-02-26 07:52:22 (GMT)
commitc4ba3fdae5a576ed26815a3ef637614b2017fc18 (patch)
treefd6efb286352203fc697aae98efa8263d5425d1f
parentc789fbddf491e91b5f3e3b408221117aa04095dc (diff)
downloadbuildroot-c4ba3fdae5a576ed26815a3ef637614b2017fc18.tar.gz
buildroot-c4ba3fdae5a576ed26815a3ef637614b2017fc18.tar.bz2
cramfs: add CFLAGS/LDFLAGS and host-zlib dependency
cramfs depends on host-zlib, so it must be built prior to cramfs. Moreover, we need to pass the HOST_CFLAGS and HOST_LDFLAGS variables, otherwise it doesn't find zlib in $(HOST_DIR). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--target/cramfs/cramfs.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk
index 79353b5..e6d63ed 100644
--- a/target/cramfs/cramfs.mk
+++ b/target/cramfs/cramfs.mk
@@ -20,10 +20,10 @@ $(CRAMFS_DIR): $(DL_DIR)/$(CRAMFS_SOURCE)
toolchain/patch-kernel.sh $(CRAMFS_DIR) target/cramfs/ cramfs\*.patch
$(CRAMFS_DIR)/mkcramfs: $(CRAMFS_DIR)
- $(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C $(CRAMFS_DIR)
+ $(MAKE) CFLAGS="$(HOST_CFLAGS) -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="$(HOST_LDFLAGS)" -C $(CRAMFS_DIR)
touch -c $@
-cramfs: $(CRAMFS_DIR)/mkcramfs
+cramfs: host-zlib $(CRAMFS_DIR)/mkcramfs
cramfs-source: $(DL_DIR)/$(CRAMFS_SOURCE)