[FFmpeg-devel] [PATCH] configure: support dlmalloc custom allocator

Peter Ross pross at xvid.org
Sun Dec 9 00:29:40 EET 2018


Doug Lea's Malloc: http://g.oswego.edu/dl/html/malloc.html
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index 99c4c05347..c6cbd4a33c 100755
--- a/configure
+++ b/configure
@@ -5854,6 +5854,11 @@ check_builtin x264_csp_bgr "stdint.h x264.h" "X264_CSP_BGR"
 
 malloc_extralibs=
 case "$custom_allocator" in
+    dlmalloc)
+	require libdlmalloc dlmalloc.h dlmalloc -ldlmalloc
+        malloc_prefix=dl
+        malloc_extralibs=-ldlmalloc
+    ;;
     jemalloc)
         # jemalloc by default does not use a prefix
         require libjemalloc jemalloc/jemalloc.h malloc -ljemalloc
-- 
2.17.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181209/b7da323c/attachment.sig>


More information about the ffmpeg-devel mailing list