[FFmpeg-devel] [PATCH 2/5] configure: add -fno-omit-frame-pointer when sanitizers are used

Kacper Michajłow kasper93 at gmail.com
Thu Jul 17 04:14:52 EEST 2025


All sanitizers give better reports with frame pointers.

Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 85712380c0..3fe33b72ed 100755
--- a/configure
+++ b/configure
@@ -4643,6 +4643,9 @@ add_sanitizers(){
     for sanitizer in "${sanitizers[@]}"; do
         add_sanitizer_flags "$sanitizer"
     done
+    if [ "${#sanitizers[@]}" -gt 0 ]; then
+        add_cflags -fno-omit-frame-pointer
+    fi
 }
 
 case "$toolchain" in
-- 
2.50.1



More information about the ffmpeg-devel mailing list