List:Commits« Previous MessageNext Message »
From:Joerg Bruehe Date:October 3 2010 4:24pm
Subject:bzr commit into mysql-5.5-bugfixing branch (joerg:3208) Bug#56267
View as plain text  
#At file:///MySQL/REPO/V55/bug56267-5.5/ based on revid:alik@stripped

 3208 Joerg Bruehe	2010-10-03
      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.

    modified:
      scripts/CMakeLists.txt
=== modified file 'scripts/CMakeLists.txt'
--- a/scripts/CMakeLists.txt	2010-09-07 15:05:16 +0000
+++ b/scripts/CMakeLists.txt	2010-10-03 16:24:45 +0000
@@ -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")


Attachment: [text/bzr-bundle] bzr/joerg@mysql.com-20101003162445-tey4am3434qkxh2j.bundle
Thread
bzr commit into mysql-5.5-bugfixing branch (joerg:3208) Bug#56267Joerg Bruehe3 Oct