diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-08-10 12:03:48 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-08-13 23:37:21 +0200 |
commit | fc556a8d94130f30d9c0545f2146fb49166d310c (patch) | |
tree | 23a58695e0792a2d987c8d4577ef4b5ebe001754 | |
parent | cb9648a6b5041ca928e8da2d2571ba9df6d80e8a (diff) | |
download | mariadb-git-fc556a8d94130f30d9c0545f2146fb49166d310c.tar.gz |
compilation fix for SLES 11 SP4
-rw-r--r-- | storage/xtradb/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/xtradb/CMakeLists.txt b/storage/xtradb/CMakeLists.txt index 0c28775630b..d99b7cfe114 100644 --- a/storage/xtradb/CMakeLists.txt +++ b/storage/xtradb/CMakeLists.txt @@ -81,9 +81,9 @@ CHECK_FUNCTION_EXISTS(sched_getcpu HAVE_SCHED_GETCPU) IF(NOT MSVC) # either define HAVE_IB_GCC_ATOMIC_BUILTINS or not - # workaround for gcc 4.1.2 RHEL5/x86, gcc atomic ops only work under -march=i686 + # workaround for old gcc on x86, gcc atomic ops only work under -march=i686 IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND CMAKE_COMPILER_IS_GNUCC AND - CMAKE_C_COMPILER_VERSION VERSION_LESS "4.1.3") + CMAKE_C_COMPILER_VERSION VERSION_LESS "4.4.0") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i686") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686") ENDIF() |