[FFmpeg-devel] configure: support dlmalloc custom allocator

Submitted by Peter Ross on Dec. 8, 2018, 10:29 p.m.

Details

Message ID d1c6e0e3303fbae239832c2694c91d9860a74218.1544308166.git.pross@xvid.org
State New
Headers show

Commit Message

Peter Ross Dec. 8, 2018, 10:29 p.m.
Doug Lea's Malloc: http://g.oswego.edu/dl/html/malloc.html
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

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