1 Star 0 Fork 55

liuhaofeng/mysql

forked from src-openEuler/mysql 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
disable-moutline-atomics-for-aarch64.patch 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
wangxiao65 提交于 2021-03-12 14:23 . upgrade mysql to 8.0.23, fix cves
From 3603a7c5191c98e86e3b769c5877d17fd18bf39b Mon Sep 17 00:00:00 2001
From: maminjie <maminjie1@huawei.com>
Date: Fri, 26 Feb 2021 14:58:05 +0800
Subject: [PATCH] disable moutline-atomics for aarch64
---
CMakeLists.txt | 13 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index df69eb90..94557fc9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -938,13 +938,13 @@ ENDIF()
# The -moutline-atomics switch enables run-time detection of LSE support.
# There are compilers (gcc 9.3.1 for example) which support this switch, but
# do not enable it by default, even though it seems to help. So, we force it.
-IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
- MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
- IF(HAVE_OUTLINE_ATOMICS)
- STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
- STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
- ENDIF()
-ENDIF()
+#IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
+# MY_CHECK_CXX_COMPILER_FLAG( "-moutline-atomics" HAVE_OUTLINE_ATOMICS)
+# IF(HAVE_OUTLINE_ATOMICS)
+# STRING_APPEND(CMAKE_C_FLAGS " -moutline-atomics")
+# STRING_APPEND(CMAKE_CXX_FLAGS " -moutline-atomics")
+# ENDIF()
+#ENDIF()
IF(LINUX)
OPTION(LINK_RANDOMIZE "Randomize the order of all symbols in the binary" OFF)
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kkhome1/mysql.git
git@gitee.com:kkhome1/mysql.git
kkhome1
mysql
mysql
master

搜索帮助