summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-03-02 17:42:23 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-03-02 17:42:23 +0100
commit58794482a970d226208b9b510e606b9b44c752cd (patch)
tree43d62e68f777b552acb0cc9dd300fbb5d3307670
parent291fedce66e808c65a3ce6388b0fa48052ab69f8 (diff)
downloadbuildroot-novena-58794482a970d226208b9b510e606b9b44c752cd.tar.gz
buildroot-novena-58794482a970d226208b9b510e606b9b44c752cd.zip
squashfs: fix 3.4 build after be8a104c3cd (pass CFLAGS/LDFLAGS and add host-zlib dependency)
Commit be8a104c3cd (pass CFLAGS/LDFLAGS and add host-zlib dependency) changed the way make was invocated for squashfs and added a patch for 4.0, but forgot to add an equivalent patch for 3.4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--CHANGES4
-rw-r--r--target/squashfs/squashfs-3.4-build-system-fix.patch28
2 files changed, 32 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index a49ca4e4b..76d9aee5d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+2010.05, Not yet released
+
+ Updated/fixed packages: squashfs
+
2010.02, Release February 26th, 2010:
Fixes all over the tree.
diff --git a/target/squashfs/squashfs-3.4-build-system-fix.patch b/target/squashfs/squashfs-3.4-build-system-fix.patch
new file mode 100644
index 000000000..5b86b008a
--- /dev/null
+++ b/target/squashfs/squashfs-3.4-build-system-fix.patch
@@ -0,0 +1,28 @@
+[PATCH]: squashfs-tools: Handle user supplied CFLAGS/LDFLAGS
+
+Properly handle make CFLAGS=.. LDFLAGS=..
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ squashfs-tools/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: squashfs3.4/squashfs-tools/Makefile
+===================================================================
+--- squashfs3.4.orig/squashfs-tools/Makefile
++++ squashfs3.4/squashfs-tools/Makefile
+@@ -2,12 +2,12 @@ INSTALL_DIR = /usr/local/bin
+
+ INCLUDEDIR = .
+
+-CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
++override CFLAGS += -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
+
+ all: mksquashfs unsquashfs
+
+ mksquashfs: mksquashfs.o read_fs.o sort.o
+- $(CC) mksquashfs.o read_fs.o sort.o -lz -lpthread -lm -o $@
++ $(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o -lz -lpthread -lm -o $@
+
+ mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h
+