Changeset View
Changeset View
Standalone View
Standalone View
databases/mariadb101-client/files/patch-cmake_jemalloc.cmake
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Upstreamed https://github.com/MariaDB/server/pull/140 | |||||
--- cmake/jemalloc.cmake.orig 2015-12-23 15:33:29 UTC | |||||
+++ cmake/jemalloc.cmake | |||||
@@ -12,7 +12,12 @@ MACRO(JEMALLOC_TRY_STATIC) | |||||
ENDMACRO() | |||||
MACRO(JEMALLOC_TRY_DYNAMIC) | |||||
- SET(libname jemalloc) | |||||
+ IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND | |||||
+ CMAKE_SYSTEM_VERSION STRGREATER "10.0") | |||||
+ SET(libname c) | |||||
+ ELSE() | |||||
+ SET(libname jemalloc) | |||||
+ ENDIF() | |||||
SET(what system) | |||||
CHECK_LIBRARY_EXISTS(${libname} malloc_stats_print "" HAVE_DYNAMIC_JEMALLOC) | |||||
ENDMACRO() | |||||
koobs: Can these be overridden using CMake arguments / environment variables instead of patches? | |||||
Not Done Inline ActionsNot at the moment. jemalloc is in base in FreeBSD and the MariaDB doesn't detect that correctly brnrd: Not at the moment. jemalloc is in base in FreeBSD and the MariaDB doesn't detect that correctly | |||||
Not Done Inline ActionsRefactored patch and submitted it upstream brnrd: Refactored patch and [[ https://github.com/MariaDB/server/pull/140 | submitted it upstream ]] |
Can these be overridden using CMake arguments / environment variables instead of patches?