On 05/15/2013 11:51 PM, Luca Barbato wrote:
On 05/15/2013 11:31 PM, Diego Biurrun wrote:
On 05/14/2013 10:44 PM, Luca Barbato wrote:
--- a/configure
+++ b/configure
@@ -2210,6 +2210,16 @@ case "$toolchain" in
           add_cflags  -fsanitize=thread -pie
           add_ldflags -fsanitize=thread -pie
       ;;
+    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.

Hmmm, are you sure, have you tested that clang sets that? If it does not complain, we might -fPIC to clang as well.

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

Reply via email to