https://bugs.gentoo.org/785556
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -170,14 +170,6 @@
     endif()
 endforeach()
 
-if(CMAKE_C_FLAGS MATCHES ".*-march=native.*")
-    string(APPEND CMAKE_C_FLAGS " -mno-avx")
-endif()
-
-if(CMAKE_CXX_FLAGS MATCHES ".*-march=native.*")
-    string(APPEND CMAKE_CXX_FLAGS " -mno-avx")
-endif()
-
 if(CMAKE_ASM_NASM_OBJECT_FORMAT MATCHES "win")
     set(CMAKE_ASM_NASM_FLAGS_DEBUG "${CMAKE_ASM_NASM_FLAGS_DEBUG} -gcv8")
 elseif(CMAKE_ASM_NASM_COMPILER MATCHES "nasm")
