diff options
Diffstat (limited to 'sys-cluster/ceph/files/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch')
-rw-r--r-- | sys-cluster/ceph/files/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-cluster/ceph/files/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch b/sys-cluster/ceph/files/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch new file mode 100644 index 000000000000..e9439a630185 --- /dev/null +++ b/sys-cluster/ceph/files/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch @@ -0,0 +1,22 @@ +diff --git a/src/compressor/zlib/ZlibCompressor.cc b/src/compressor/zlib/ZlibCompressor.cc +index e3064d2a21..c86b19da6c 100644 +--- a/src/compressor/zlib/ZlibCompressor.cc ++++ b/src/compressor/zlib/ZlibCompressor.cc +@@ -107,7 +107,7 @@ int ZlibCompressor::zlib_compress(const bufferlist &in, bufferlist &out) + return 0; + } + +-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) ++#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) && defined(HAVE_INTEL_SSE4_1) + int ZlibCompressor::isal_compress(const bufferlist &in, bufferlist &out) + { + int ret; +@@ -167,7 +167,7 @@ int ZlibCompressor::compress(const bufferlist &in, bufferlist &out) + if (qat_enabled) + return qat_accel.compress(in, out); + #endif +-#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) ++#if __x86_64__ && defined(HAVE_BETTER_YASM_ELF64) && defined(HAVE_INTEL_SSE4_1) + if (isal_enabled) + return isal_compress(in, out); + else |