tsan: don't add -pie when compiling tests
authorDmitry Vyukov <dvyukov@google.com>
Wed, 19 Nov 2014 10:45:53 +0000 (10:45 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 19 Nov 2014 10:45:53 +0000 (10:45 +0000)
driver should add it as necessary

llvm-svn: 222343

compiler-rt/test/tsan/test_output.sh

index f5b75ed..bce0fe8 100755 (executable)
@@ -12,8 +12,8 @@ TSAN_DIR=$(dirname $0)/../../lib/tsan
 : ${FILECHECK:=FileCheck}
 
 # TODO: add testing for all of -O0...-O3
-CFLAGS="-fsanitize=thread -fPIE -O1 -g -Wall"
-LDFLAGS="-pie -pthread -ldl -lrt -lm -Wl,--whole-archive $TSAN_DIR/rtl/libtsan.a -Wl,--no-whole-archive"
+CFLAGS="-fsanitize=thread -O2 -g -Wall"
+LDFLAGS="-pthread -ldl -lrt -lm -Wl,--whole-archive $TSAN_DIR/rtl/libtsan.a -Wl,--no-whole-archive"
 
 test_file() {
   SRC=$1