squashfs: add patch for gzip, build with -fwhole-program

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-07-15 20:33:55 +02:00
parent c23fe2f641
commit 9539ffefbc
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,8 @@
setup_toolchain host
LDFLAGS="$LDFLAGS -fwhole-program"
cd $BUILD/$1*/squashfs-tools
make mksquashfs \
XZ_SUPPORT=1 \

View File

@ -0,0 +1,12 @@
diff -Naur squashfs4.2-old/squashfs-tools/compressor.c squashfs4.2-new/squashfs-tools/compressor.c
--- squashfs4.2-old/squashfs-tools/compressor.c 2011-02-11 07:49:24.000000000 -0800
+++ squashfs4.2-new/squashfs-tools/compressor.c 2011-03-04 10:27:47.000000000 -0800
@@ -27,7 +27,7 @@
#ifndef GZIP_SUPPORT
static struct compressor gzip_comp_ops = {
- NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION, "gzip", 0
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION, "gzip", 0
};
#else
extern struct compressor gzip_comp_ops;