# HG changeset patch # User Chris Cannam # Date 1424799720 0 # Node ID b70addc910d58a2494a821ba7823101e6d52c2fe # Parent 2be9753651c8df0fd499a294811a30278a6e5ea2 Enable ThreadSanitizer diff -r 2be9753651c8 -r b70addc910d5 configure --- a/configure Mon Feb 09 10:31:07 2015 +0000 +++ b/configure Tue Feb 24 17:42:00 2015 +0000 @@ -4343,7 +4343,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 diff -r 2be9753651c8 -r b70addc910d5 configure.ac --- 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