diff options
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', [[ |
