diff options
-rw-r--r-- | module/Makefile.bsd | 2 | ||||
-rw-r--r-- | module/zstd/Makefile.in | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/module/Makefile.bsd b/module/Makefile.bsd index 53b97dafd..4feb9e1ea 100644 --- a/module/Makefile.bsd +++ b/module/Makefile.bsd @@ -356,4 +356,4 @@ CFLAGS.zil.c= -Wno-cast-qual CFLAGS.zio.c= -Wno-cast-qual CFLAGS.zrlock.c= -Wno-cast-qual CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith -CFLAGS.zstd.c= -fno-tree-vectorize +CFLAGS.zstd.c= -fno-tree-vectorize -U__BMI__ diff --git a/module/zstd/Makefile.in b/module/zstd/Makefile.in index eea749ea8..f67db710f 100644 --- a/module/zstd/Makefile.in +++ b/module/zstd/Makefile.in @@ -20,6 +20,9 @@ ccflags-y += -O3 # Set it for other compilers, too. $(obj)/lib/zstd.o: c_flags += -fno-tree-vectorize +# SSE register return with SSE disabled if -march=znverX is passed +$(obj)/lib/zstd.o: c_flags += -U__BMI__ + # Quiet warnings about frame size due to unused code in unmodified zstd lib $(obj)/lib/zstd.o: c_flags += -Wframe-larger-than=20480 |