diff options
author | Rob Norris <[email protected]> | 2024-09-10 07:13:27 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-09 14:13:27 -0700 |
commit | 5c67820265c18e82c2d79c77ab09fc46904b58b8 (patch) | |
tree | 6b742ec71ec49e53603cb7b7cf5e4da79c55989b | |
parent | b109925820fb79db3e37670c159977f03edd950f (diff) |
libzstd: also build with LIBZPOOL_CPPFLAGS
libzstd now also allocates its own abd_t, and so has the same issue as
zstream did, so this applies the same workaround: compile it with
ZFS_DEBUG. See 92fca1c2d.
This looks weird, because libzstd doesn't appear to look related to the
ZFS kernel, but there is already a cross-dependency there: zstd needs
zfs_lz4_compress, and zfs needs zfs_zstd_compress (and others), so the
two can never really be separated without more work. Another job for
another time.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed by: Brian Behlendorf <[email protected]>
Reviewed-by: Mark Maybee <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Closes #16489
-rw-r--r-- | lib/libzstd/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libzstd/Makefile.am b/lib/libzstd/Makefile.am index 49bfb328a..856175137 100644 --- a/lib/libzstd/Makefile.am +++ b/lib/libzstd/Makefile.am @@ -1,4 +1,6 @@ libzstd_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) +libzstd_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS) + # -fno-tree-vectorize is set for gcc in zstd/common/compiler.h # Set it for other compilers, too. libzstd_la_CFLAGS += -fno-tree-vectorize |