summaryrefslogtreecommitdiff
path: root/target/tools/squashfs
diff options
context:
space:
mode:
Diffstat (limited to 'target/tools/squashfs')
-rw-r--r--target/tools/squashfs/Makefile2
-rw-r--r--target/tools/squashfs/patches/honour-cflags.patch11
2 files changed, 12 insertions, 1 deletions
diff --git a/target/tools/squashfs/Makefile b/target/tools/squashfs/Makefile
index 3f22d8a56..53be3bb3c 100644
--- a/target/tools/squashfs/Makefile
+++ b/target/tools/squashfs/Makefile
@@ -14,7 +14,7 @@ WRKDIST= ${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
include ../rules.mk
$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
- $(MAKE) -C $(WRKBUILD)/squashfs-tools
+ ${MAKE} -C ${WRKBUILD}/squashfs-tools CC='${HOSTCC}'
touch $@
${STAGING_HOST_DIR}/bin/mksquashfs: $(WRKBUILD)/.compiled
diff --git a/target/tools/squashfs/patches/honour-cflags.patch b/target/tools/squashfs/patches/honour-cflags.patch
new file mode 100644
index 000000000..2ee7de909
--- /dev/null
+++ b/target/tools/squashfs/patches/honour-cflags.patch
@@ -0,0 +1,11 @@
+--- squashfs4.0/squashfs-tools/Makefile~ Sun Apr 5 02:03:12 2009
++++ squashfs4.0/squashfs-tools/Makefile Fri Jan 7 16:16:46 2011
+@@ -2,7 +2,7 @@ INSTALL_DIR = /usr/local/bin
+
+ INCLUDEDIR = .
+
+-CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
++CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 ${HOSTCFLAGS}
+
+ all: mksquashfs unsquashfs
+