freebsd-ports/databases/mariadb55-server/files/patch-cmake_jemalloc.cmake
Bernard Spil e1822696f3 databases/mariadb55-server: Update to 5.5.56
- Bugfix update to 5.5.56
 - Re-roll patches
 - Convert patches to new naming convention
 - Add/move ldconfig config to -server
 - Move client option to -client port
2017-05-04 09:33:18 +00:00

16 lines
542 B
CMake

--- cmake/jemalloc.cmake.orig 2017-04-30 11:09:29 UTC
+++ cmake/jemalloc.cmake
@@ -22,11 +22,11 @@ MACRO (CHECK_JEMALLOC)
SET(libname jemalloc)
ENDIF()
- CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_JEMALLOC)
+ CHECK_LIBRARY_EXISTS(c malloc_stats_print "" HAVE_JEMALLOC)
SET(CMAKE_REQUIRED_LIBRARIES)
IF (HAVE_JEMALLOC)
- SET(LIBJEMALLOC ${libname})
+ SET(LIBJEMALLOC c)
ELSEIF (NOT WITH_JEMALLOC STREQUAL "auto")
MESSAGE(FATAL_ERROR "${libname} is not found")
ENDIF()