diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-26 01:08:46 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-26 01:08:46 +0100 |
commit | 7da4229f2ef2bdf24b6196991d8e474fa42c1811 (patch) | |
tree | cd9179603b26f9288b5547faccec66e17e1a5f48 /cmake | |
parent | 711d7452da8690c4e775313b55c92b12595352bd (diff) | |
download | mariadb-git-7da4229f2ef2bdf24b6196991d8e474fa42c1811.tar.gz |
Fix build on old 32 bit Centos (kernel 2.6.18)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/os/Linux.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/os/Linux.cmake b/cmake/os/Linux.cmake index ccdf7e8d931..108e06cf7b0 100644 --- a/cmake/os/Linux.cmake +++ b/cmake/os/Linux.cmake @@ -46,3 +46,10 @@ IF(HAVE_DECL_SHM_HUGETLB) SET(HUGETLB_USE_PROC_MEMINFO 1) SET(HAVE_LARGE_PAGE_OPTION 1) ENDIF() + +IF(CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR MATCHES "86") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i686") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686") + SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -march=i686") +ENDIF() + |