diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-27 11:44:20 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-28 16:15:35 +0100 |
commit | 113b174c5807f76cb14cfed7a8f86a299393666e (patch) | |
tree | 5049d9bf32dbc582c5da0f251e7fdfcfe817c2f4 /lib/sqfs/Makemodule.am | |
parent | 2e109625bb7496bf1f3e75e30345c8cbd6eacede (diff) |
Add a small version of liblz4 that can be built in statically
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/Makemodule.am')
-rw-r--r-- | lib/sqfs/Makemodule.am | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index 0a3b874..c2b243c 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -67,6 +67,13 @@ endif if WITH_LZ4 libsquashfs_la_SOURCES += lib/sqfs/comp/lz4.c libsquashfs_la_CPPFLAGS += -DWITH_LZ4 + +if WITH_OWN_LZ4 +libsquashfs_la_CPPFLAGS += -I$(top_srcdir)/lib/sqfs/comp/lz4 -DLZ4_HEAPMODE=1 + +libsquashfs_la_SOURCES += lib/sqfs/comp/lz4/lz4.c lib/sqfs/comp/lz4/lz4.h +libsquashfs_la_SOURCES += lib/sqfs/comp/lz4/lz4hc.c lib/sqfs/comp/lz4/lz4hc.h +endif endif if WITH_ZSTD @@ -80,3 +87,5 @@ sqfsinclude_HEADERS = $(LIBSQFS_HEARDS) lib_LTLIBRARIES += libsquashfs.la pkgconfig_DATA += lib/sqfs/libsquashfs0.pc + +EXTRA_DIST += lib/sqfs/comp/lz4/README |