On 05/15/2013 11:31 PM, Diego Biurrun wrote:
> On 05/14/2013 10:44 PM, Luca Barbato wrote:
>> Recent gcc sport asan and tsan integration that can be leveraged
>> when hunting bugs.
> 
> s/sport/contains/ or s/sport/added/, a specific version would be useful.
> 
>> --- a/configure
>> +++ b/configure
>> @@ -2210,6 +2210,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
>> +    ;;
> 
> Why -fPIC, unlike clang?

gcc requires that, clang considers -pie include -fPIC I guess.

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

Reply via email to