[SCM] libav/experimental: configure: Add usan to the toolchain presets

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:01:27 UTC 2014


The following commit has been merged in the experimental branch:
commit d6a27f885b5d4cba7a82e50af423c741d2f37c3e
Author: Luca Barbato <lu_zero at gentoo.org>
Date:   Wed Feb 19 20:20:39 2014 +0100

    configure: Add usan to the toolchain presets
    
    clang-3.4 and gcc-4.9 have it.

diff --git a/configure b/configure
index 7b7c7c3..72cf831 100755
--- a/configure
+++ b/configure
@@ -2349,6 +2349,11 @@ case "$toolchain" in
         add_cflags  -fsanitize=thread -pie
         add_ldflags -fsanitize=thread -pie
     ;;
+    clang-usan)
+        cc_default="clang"
+        add_cflags  -fsanitize=undefined
+        add_ldflags -fsanitize=undefined
+    ;;
     gcc-asan)
         cc_default="gcc"
         add_cflags  -fsanitize=address
@@ -2359,6 +2364,11 @@ case "$toolchain" in
         add_cflags  -fsanitize=thread -pie -fPIC
         add_ldflags -fsanitize=thread -pie -fPIC
     ;;
+    gcc-usan)
+        cc_default="gcc"
+        add_cflags  -fsanitize=undefined
+        add_ldflags -fsanitize=undefined
+    ;;
     valgrind-massif)
         target_exec_default="valgrind"
         target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list