summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-05-22 07:56:09 +0000
committerKostya Serebryany <kcc@google.com>2012-05-22 07:56:09 +0000
commitf4226aea2c553157ef2392ffa0b0c7ff57a68d4e (patch)
tree549d4f17a29d2c5832f3e94664eae58f1e49a20f /make
parente4d141dbbaf5185f332a185c22308340657d243e (diff)
[asan] use -fPIE -fno-builtin for building asan-rt
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r--make/platform/clang_linux.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/platform/clang_linux.mk b/make/platform/clang_linux.mk
index 7f38f0701..261edf0ec 100644
--- a/make/platform/clang_linux.mk
+++ b/make/platform/clang_linux.mk
@@ -63,8 +63,8 @@ CFLAGS.full-i386 := $(CFLAGS) -m32
CFLAGS.full-x86_64 := $(CFLAGS) -m64
CFLAGS.profile-i386 := $(CFLAGS) -m32
CFLAGS.profile-x86_64 := $(CFLAGS) -m64
-CFLAGS.asan-i386 := $(CFLAGS) -m32
-CFLAGS.asan-x86_64 := $(CFLAGS) -m64
+CFLAGS.asan-i386 := $(CFLAGS) -m32 -fPIE -fno-builtin
+CFLAGS.asan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin
CFLAGS.tsan-x86_64 := $(CFLAGS) -m64 -fPIE -fno-builtin
# Use our stub SDK as the sysroot to support more portable building. For now we