1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 727d66011f9..acae1aada57 100644
5 @@ -1338,19 +1338,6 @@ IF(UNIX AND MY_COMPILER_IS_GNU_OR_CLANG
9 -# For aarch64 some sub-architectures support LSE atomics and some don't. Thus,
10 -# compiling for the common denominator (-march=armv8-a) means LSE is not used.
11 -# The -moutline-atomics switch enables run-time detection of LSE support.
12 -# There are compilers (gcc 9.3.1 for example) which support this switch, but
13 -# do not enable it by default, even though it seems to help. So, we force it.
14 -IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
15 - MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
16 - IF(HAVE_OUTLINE_ATOMICS)
17 - STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
18 - STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
23 OPTION(LINK_RANDOMIZE "Randomize the order of all symbols in the binary" OFF)
24 SET(LINK_RANDOMIZE_SEED "mysql"