diff options
author | Erwin Rol <erwin@erwinrol.com> | 2010-02-27 00:16:03 +0100 |
---|---|---|
committer | Erwin Rol <erwin@erwinrol.com> | 2010-03-22 22:46:49 +0100 |
commit | daa0ff7dad3892f2e031a6457325fe554ccbae95 (patch) | |
tree | fdf9d52449f5a70c65465c7f36070f2b9da8a717 /patches/squashfs3.4 | |
parent | b55110fa96f1b64baba02dee0a45a5d05d271d8a (diff) | |
download | ptxdist-daa0ff7dad3892f2e031a6457325fe554ccbae95.tar.gz ptxdist-daa0ff7dad3892f2e031a6457325fe554ccbae95.tar.xz |
[squashfs] Add target version
- Adds a target version of squashf-tools
Signed-off-by: Erwin Rol <erwin@erwinrol.com>
Diffstat (limited to 'patches/squashfs3.4')
-rw-r--r-- | patches/squashfs3.4/series | 1 | ||||
-rw-r--r-- | patches/squashfs3.4/squashfs_libs.diff | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/patches/squashfs3.4/series b/patches/squashfs3.4/series new file mode 100644 index 000000000..de458cdb8 --- /dev/null +++ b/patches/squashfs3.4/series @@ -0,0 +1 @@ +squashfs_libs.diff diff --git a/patches/squashfs3.4/squashfs_libs.diff b/patches/squashfs3.4/squashfs_libs.diff new file mode 100644 index 000000000..962c8ef1f --- /dev/null +++ b/patches/squashfs3.4/squashfs_libs.diff @@ -0,0 +1,34 @@ +Subject: Add way to change linker settings +From: Erwin Rol <erwin@erwinrol.com> + +When cross compiling the linker can not find libz, this patch +adds a LIBS variable that makes it possible to pass the right +linker flags. + +Signed-off-by: Erwin Rol <erwin@erwinrol.com> + +--- squashfs3.4/squashfs-tools/Makefile.orig 2010-02-27 00:01:56.000000000 +0100 ++++ squashfs3.4/squashfs-tools/Makefile 2010-02-27 00:02:46.000000000 +0100 +@@ -4,10 +4,12 @@ + + CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2 + ++LIBS := -lz -lpthread -lm ++ + all: mksquashfs unsquashfs + + mksquashfs: mksquashfs.o read_fs.o sort.o +- $(CC) mksquashfs.o read_fs.o sort.o -lz -lpthread -lm -o $@ ++ $(CC) mksquashfs.o read_fs.o sort.o $(LIBS) $(LDFLAGS)-o $@ + + mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h + +@@ -16,7 +18,7 @@ + sort.o: sort.c squashfs_fs.h global.h sort.h + + unsquashfs: unsquashfs.o +- $(CC) unsquashfs.o -lz -lpthread -lm -o $@ ++ $(CC) unsquashfs.o $(LIBS) $(LDFLAGS)-o $@ + + unsquashfs.o: unsquashfs.c squashfs_fs.h read_fs.h global.h + |