mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
184df27eef
For Linux, when zfs is compiled as an in kernel static variant and the in kernel zstd library is compiled statically into the kernel a symbol collision will occur. This wrapper header renames all of the relevant zstd functions to avoid this problem. Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com> Closes #10775
22 lines
759 B
Makefile
22 lines
759 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
VPATH = $(top_srcdir)/module/zstd
|
|
|
|
# -fno-tree-vectorize is set for gcc in zstd/common/compiler.h
|
|
# Set it for other compilers, too.
|
|
AM_CFLAGS += -fno-tree-vectorize
|
|
|
|
noinst_LTLIBRARIES = libzstd.la
|
|
|
|
KERNEL_C = \
|
|
lib/zstd.c \
|
|
zfs_zstd.c
|
|
|
|
nodist_libzstd_la_SOURCES = $(KERNEL_C)
|
|
|
|
lib/zstd.$(OBJEXT): CFLAGS += -fno-tree-vectorize -include $(top_srcdir)/module/zstd/include/zstd_compat_wrapper.h -Wp,-w
|
|
lib/zstd.l$(OBJEXT): CFLAGS += -fno-tree-vectorize -include $(top_srcdir)/module/zstd/include/zstd_compat_wrapper.h -Wp,-w
|
|
|
|
zfs_zstd.$(OBJEXT): CFLAGS += -include $(top_srcdir)/module/zstd/include/zstd_compat_wrapper.h
|
|
zfs_zstd.l$(OBJEXT): CFLAGS += -include $(top_srcdir)/module/zstd/include/zstd_compat_wrapper.h
|