summaryrefslogtreecommitdiff
path: root/cmake/build_configurations
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sun.com>2010-01-20 17:21:38 +0000
committerVladislav Vaintroub <wlad@sun.com>2010-01-20 17:21:38 +0000
commit4060fe7d43fb3028ceb7b4662309ca1f76246dca (patch)
treefb94dabf9e26cf396f9efabef96ce993dd7765e3 /cmake/build_configurations
parent4a9c5f798846210953aefa210aa4a780a4ee766f (diff)
downloadmariadb-git-4060fe7d43fb3028ceb7b4662309ca1f76246dca.tar.gz
Add -lmtmalloc to server linker flags on Solaris 10
and later
Diffstat (limited to 'cmake/build_configurations')
-rw-r--r--cmake/build_configurations/mysql_release.cmake4
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)