-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build intermediary lib for zstd
This add a new build intermediary libzstd. This allows us to keep zstd cleanly separated from libzpool and to override the frame-size compiler option without for zstd only. (This is needed due to unused coude in the unmodified zstd source.) Signed-off-by: Michael Niewöhner <[email protected]>
- Loading branch information
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
include $(top_srcdir)/config/Rules.am | ||
|
||
VPATH = \ | ||
$(top_srcdir)/contrib/zstd \ | ||
$(top_srcdir)/contrib/zstd/common \ | ||
$(top_srcdir)/contrib/zstd/compress \ | ||
$(top_srcdir)/contrib/zstd/decompress \ | ||
$(top_srcdir)/module/zstd | ||
|
||
DEFAULT_INCLUDES += \ | ||
-I$(top_srcdir)/contrib/zstd \ | ||
-I$(top_srcdir)/contrib/zstd/common \ | ||
-I$(top_srcdir)/contrib/zstd/compress \ | ||
-I$(top_srcdir)/contrib/zstd/decompress | ||
|
||
noinst_LTLIBRARIES = libzstd.la | ||
|
||
KERNEL_C = \ | ||
zstd_common.c \ | ||
fse_decompress.c \ | ||
entropy_common.c \ | ||
xxhash.c \ | ||
hist.c \ | ||
error_private.c \ | ||
zstd_compress.c \ | ||
zstd_compress_literals.c \ | ||
zstd_compress_sequences.c \ | ||
fse_compress.c \ | ||
huf_compress.c \ | ||
zstd_double_fast.c \ | ||
zstd_fast.c \ | ||
zstd_lazy.c \ | ||
zstd_ldm.c \ | ||
zstd_opt.c \ | ||
zstd_ddict.c \ | ||
zstd_decompress.c \ | ||
zstd_decompress_block.c \ | ||
huf_decompress.c \ | ||
zstd.c | ||
|
||
nodist_libzstd_la_SOURCES = $(KERNEL_C) | ||
|
||
# -fno-tree-vectorize gets set for gcc in zstd/common/compiler.h | ||
# Set it for other compilers, too. | ||
CFLAGS_zstd_decompress_block.o := -fno-tree-vectorize |