diff configure.ac @ 899:b70addc910d5 datarace

Enable ThreadSanitizer
author Chris Cannam
date Tue, 24 Feb 2015 17:42:00 +0000
parents 899c4d7e7e63
children
line wrap: on
line diff
--- a/configure.ac	Mon Feb 09 10:31:07 2015 +0000
+++ b/configure.ac	Tue Feb 24 17:42:00 2015 +0000
@@ -53,7 +53,8 @@
 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS"
 
 if test "x$GCC" = "xyes"; then
-        CXXFLAGS_DEBUG="-std=c++11 -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
+        CXXFLAGS_DEBUG="-std=c++11 -fpie -pie -fsanitize=thread -Wall -Wextra -Werror -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe"
+	LIBS="$LIBS -std=c++11 -fpie -pie -fsanitize=thread"
    	CXXFLAGS_RELEASE="-std=c++11 -g0 -O2 -Wall -pipe"
    	CXXFLAGS_MINIMAL="-std=c++11 -g0 -O0"
 fi