summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/DefineDependsandFlags.cmake
diff options
context:
space:
mode:
authorchr[] <chris@deviu.lan>2017-06-30 13:08:14 +0000
committerchr[] <chris@deviu.lan>2017-06-30 13:08:14 +0000
commitd6f2d85a424751ac9dd468949a950ecc46148ff2 (patch)
tree9271dbfa67fd4c84e78439c1a7ad883c7e2ac4eb /CMakeScripts/DefineDependsandFlags.cmake
parentReplace ImageMagic with GraphicsMagic (diff)
downloadinkscape-d6f2d85a424751ac9dd468949a950ecc46148ff2.tar.gz
inkscape-d6f2d85a424751ac9dd468949a950ecc46148ff2.zip
jemalloc cmake module
(shamelessly stolen from Blender) libstdc++ memory allocator is broken: "Notes about deallocation. This allocator does not explicitly release memory." The story: https://www.zerotier.com/blog/2017-05-05-theleak.shtml The solution?! http://jemalloc.net/ No need to recompile, just install it and a simple test run: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1 inkscape
Diffstat (limited to 'CMakeScripts/DefineDependsandFlags.cmake')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index 981598527..0a8782f27 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -67,6 +67,11 @@ if(WITH_GNOME_VFS)
endif()
endif()
+find_package(JeMalloc)
+if (JEMALLOC_FOUND)
+ list(APPEND INKSCAPE_LIBS ${JEMALLOC_LIBRARIES})
+endif()
+
if(ENABLE_LCMS)
unset(HAVE_LIBLCMS1)
unset(HAVE_LIBLCMS2)