On 05/18/2013 08:44 PM, Luca Barbato wrote:
> Since version 4.8 gcc sports asan and tsan integration that can
> be leveraged when hunting bugs.
> 
> Signed-off-by: Luca Barbato <[email protected]>
> ---
>  configure | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/configure b/configure
> index f39a860..cbc344b 100755
> --- a/configure
> +++ b/configure
> @@ -2211,6 +2211,16 @@ case "$toolchain" in
>          add_cflags  -fsanitize=thread -pie
>          add_ldflags -fsanitize=thread -pie
>      ;;
> +    gcc-asan)
> +        cc_default="gcc"
> +        add_cflags  -fsanitize=address
> +        add_ldflags -fsanitize=address
> +    ;;
> +    gcc-tsan)
> +        cc_default="gcc"
> +        add_cflags  -fsanitize=thread -pie -fPIC
> +        add_ldflags -fsanitize=thread -pie -fPIC
> +    ;;
>      valgrind-massif)
>          target_exec_default="valgrind"
>          target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"
> 

Ping.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to