diff options
Diffstat (limited to 'cmake/build_configurations')
-rw-r--r-- | cmake/build_configurations/mysql_release.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index dde756391db..f78dde54e20 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -70,6 +70,10 @@ IF(UNIX) # Solaris flags IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") + IF(CMAKE_SYSTEM_VERSION VERSION_GREATER "5.9") + # Link mysqld with mtmalloc on Solaris 10 and later + SET(WITH_MYSQLD_LDFLAGS "-lmtmalloc" CACHE STRING "") + ENDIF() IF(CMAKE_C_COMPILER_ID MATCHES "SunPro") IF(CMAKE_SYSTEM_PROCESSOR MATCHES "i386") IF(CMAKE_SIZEOF_VOIDP EQUAL 4) |