Whamcloud - gitweb
LU-3570 libcfs: accelerate crc32c with pclmulqdq
[fs/lustre-release.git] / libcfs / libcfs / autoMakefile.am
index 609b133..66154b1 100644 (file)
@@ -50,7 +50,9 @@ libcfs_a_SOURCES= posix/posix-debug.c user-prim.c user-lock.c user-tcpip.c  \
                  posix/posix-adler.c heap.c
 
 if HAVE_PCLMULQDQ
-libcfs_a_SOURCES += user-crc32pclmul.c crc32-pclmul_asm.S
+if NEED_PCLMULQDQ_CRC32
+libcfs_a_SOURCES += user-crc32pclmul.c linux/crc32-pclmul_asm.S
+endif
 endif
 
 libcfs_a_CPPFLAGS = $(LLCPPFLAGS)