Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / sql / mysql / no-force-outline-atomics.patch
bloba716a4f7f481de68057cb4fac8cc5d7b8fcc987b
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 727d66011f9..acae1aada57 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -1338,19 +1338,6 @@ IF(UNIX AND MY_COMPILER_IS_GNU_OR_CLANG
6 ENDIF()
7 ENDIF()
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")
19 - ENDIF()
20 -ENDIF()
22 IF(LINUX)
23 OPTION(LINK_RANDOMIZE "Randomize the order of all symbols in the binary" OFF)
24 SET(LINK_RANDOMIZE_SEED "mysql"