···11+diff --git a/CMakeLists.txt b/CMakeLists.txt
22+index 727d66011f9..acae1aada57 100644
33+--- a/CMakeLists.txt
44++++ b/CMakeLists.txt
55+@@ -1338,19 +1338,6 @@ IF(UNIX AND MY_COMPILER_IS_GNU_OR_CLANG
66+ ENDIF()
77+ ENDIF()
88+99+-# For aarch64 some sub-architectures support LSE atomics and some don't. Thus,
1010+-# compiling for the common denominator (-march=armv8-a) means LSE is not used.
1111+-# The -moutline-atomics switch enables run-time detection of LSE support.
1212+-# There are compilers (gcc 9.3.1 for example) which support this switch, but
1313+-# do not enable it by default, even though it seems to help. So, we force it.
1414+-IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
1515+- MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
1616+- IF(HAVE_OUTLINE_ATOMICS)
1717+- STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
1818+- STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
1919+- ENDIF()
2020+-ENDIF()
2121+-
2222+ IF(LINUX)
2323+ OPTION(LINK_RANDOMIZE "Randomize the order of all symbols in the binary" OFF)
2424+ SET(LINK_RANDOMIZE_SEED "mysql"