diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-02 01:12:19 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-02 04:20:10 -0700 |
| commit | 76d148af6253d52ff64fa5a3cb725611bf32198f (patch) | |
| tree | 08d18f9824e0a9ce5d8eeb6a2335b9bf037eb015 /pkg/squashfs-tools-ng | |
| parent | b21079f323caca81fd8245fbe396320f6d210780 (diff) | |
squashfs-tools-ng: Add zstd support
Diffstat (limited to 'pkg/squashfs-tools-ng')
| -rw-r--r-- | pkg/squashfs-tools-ng/config.h | 1 | ||||
| -rw-r--r-- | pkg/squashfs-tools-ng/gen.lua | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/pkg/squashfs-tools-ng/config.h b/pkg/squashfs-tools-ng/config.h index bc811e65..34ab4524 100644 --- a/pkg/squashfs-tools-ng/config.h +++ b/pkg/squashfs-tools-ng/config.h @@ -1,4 +1,5 @@ #define WITH_GZIP 1 +#define WITH_ZSTD 1 #define HAVE_DLFCN_H 1 #define HAVE_GETLINE 1 diff --git a/pkg/squashfs-tools-ng/gen.lua b/pkg/squashfs-tools-ng/gen.lua index 5f438d12..42591d18 100644 --- a/pkg/squashfs-tools-ng/gen.lua +++ b/pkg/squashfs-tools-ng/gen.lua @@ -48,6 +48,14 @@ if cfg.WITH_GZIP then }) end +if cfg.WITH_ZSTD then + cflags{'-I $builddir/pkg/zstd/include'} + table.insert(srcs, { + 'lib/sqfs/comp/zstd.c', + '$builddir/pkg/zstd/libzstd.a', + }) +end + lib('libsquashfs.a', srcs) lib('libcommon.a', [[ |
