summaryrefslogtreecommitdiff
path: root/recipes/squashfs-tools/files/Makefile-2.2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/squashfs-tools/files/Makefile-2.2.patch')
-rw-r--r--recipes/squashfs-tools/files/Makefile-2.2.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/squashfs-tools/files/Makefile-2.2.patch b/recipes/squashfs-tools/files/Makefile-2.2.patch
new file mode 100644
index 0000000000..7a16129bbc
--- /dev/null
+++ b/recipes/squashfs-tools/files/Makefile-2.2.patch
@@ -0,0 +1,21 @@
+--- squashfs-tools/Makefile.orig 2005-10-26 18:15:43.641623000 +0100
++++ squashfs-tools/Makefile 2005-10-26 18:21:29.747253250 +0100
+@@ -1,12 +1,17 @@
+ INCLUDEDIR = .
++CFLAGS_R = -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
++LIBS = -lz
+
+ CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g
+
+ mksquashfs: mksquashfs.o read_fs.o sort.o
+- $(CC) mksquashfs.o read_fs.o sort.o -lz -o $@
++ $(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o -lz -o $@
+
+ mksquashfs.o: mksquashfs.c mksquashfs.h
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o mksquashfs.o mksquashfs.c
+
+ read_fs.o: read_fs.c read_fs.h
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o read_fs.o read_fs.c
+
+ sort.o: sort.c
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o sort.o sort.c