summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2010-10-03 18:24:45 +0200
committerJoerg Bruehe <joerg@mysql.com>2010-10-03 18:24:45 +0200
commitbf18e8529afc96590ee96c4d5f3c75de89ae7e63 (patch)
treec8cde36c6ce76640fe60303dda17c39cdc8b39d2 /scripts
parent7f552e46089b4e35edc92a70aba291441e33a813 (diff)
downloadmariadb-git-bf18e8529afc96590ee96c4d5f3c75de89ae7e63.tar.gz
Fix bug#56267:
tcmalloc lib (libtcmalloc_minimal.so) is missing from mysql 5.5 binary Ensure that a "-DMALLOC_LIB=/foo/bar/libtcmalloc_minimal.so" will ensure that this library gets included in the tar.gz binary package. It depends on the build environment to set this variable to the correct path name, if it is available.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index 0c9177c79c5..9b4b598a682 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -81,12 +81,11 @@ INSTALL(FILES
)
# TCMalloc hacks
-IF($ENV{MALLOC_LIB})
- SET(MALLOC_LIB $ENV{MALLOC_LIB} CACHE STRING "malloc library")
-ENDIF()
-
IF(MALLOC_LIB)
- INSTALL(FILES ${MALLOC_LIB} DESTINATION lib OPTIONAL)
+ MESSAGE("Using tcmalloc '${MALLOC_LIB}'")
+ INSTALL(FILES ${MALLOC_LIB} DESTINATION ${INSTALL_LIBDIR} OPTIONAL)
+ELSE()
+ MESSAGE("No 'MALLOC_LIB' variable")
ENDIF()
IF(CMAKE_GENERATOR MATCHES "Makefiles")