summaryrefslogtreecommitdiff
path: root/target/tools/squashfs/patches/honour-cflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/tools/squashfs/patches/honour-cflags.patch')
-rw-r--r--target/tools/squashfs/patches/honour-cflags.patch11
1 files changed, 11 insertions, 0 deletions
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
+