summaryrefslogtreecommitdiffstats
path: root/databases/mariadb55-server/files/patch-cmake__jemalloc.cmake
blob: 2b32419de7338be47fcb661666342e6d0f2953fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cmake/jemalloc.cmake.orig	2014-10-08 15:19:51.000000000 +0200
+++ cmake/jemalloc.cmake	2014-11-16 20:27:50.032638191 +0100
@@ -22,11 +22,11 @@
       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()
OpenPOWER on IntegriCloud