aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzstd
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libzstd')
-rw-r--r--lib/libzstd/Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/libzstd/Makefile.am b/lib/libzstd/Makefile.am
new file mode 100644
index 000000000..7e92ffb68
--- /dev/null
+++ b/lib/libzstd/Makefile.am
@@ -0,0 +1,23 @@
+include $(top_srcdir)/config/Rules.am
+
+VPATH = $(top_srcdir)/module/zstd
+
+# Includes kernel code, generate warnings for large stack frames
+AM_CFLAGS += $(FRAME_LARGER_THAN)
+
+noinst_LTLIBRARIES = libzstd.la
+
+KERNEL_C = \
+ lib/zstd.c \
+ zfs_zstd.c
+
+nodist_libzstd_la_SOURCES = $(KERNEL_C)
+
+# -fno-tree-vectorize is set for gcc in zstd/common/compiler.h
+# Set it for other compilers, too.
+lib/zstd.$(OBJEXT): CFLAGS += -fno-tree-vectorize
+lib/zstd.l$(OBJEXT): CFLAGS += -fno-tree-vectorize
+
+# Quiet warnings about frame size due to unused code in unmodified zstd lib
+lib/zstd.$(OBJEXT): CFLAGS += -Wframe-larger-than=20480
+lib/zstd.l$(OBJEXT): CFLAGS += -Wframe-larger-than=20480