[compiler-rt] r208530 - [asan] define ASAN_DYNAMIC=1 if PIC is defined
Kostya Serebryany
kcc at google.com
Mon May 12 02:45:39 PDT 2014
Author: kcc
Date: Mon May 12 04:45:39 2014
New Revision: 208530
URL: http://llvm.org/viewvc/llvm-project?rev=208530&view=rev
Log:
[asan] define ASAN_DYNAMIC=1 if PIC is defined
Modified:
compiler-rt/trunk/lib/asan/asan_internal.h
Modified: compiler-rt/trunk/lib/asan/asan_internal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_internal.h?rev=208530&r1=208529&r2=208530&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_internal.h (original)
+++ compiler-rt/trunk/lib/asan/asan_internal.h Mon May 12 04:45:39 2014
@@ -50,7 +50,11 @@
#endif
#ifndef ASAN_DYNAMIC
-# define ASAN_DYNAMIC 0
+# ifdef PIC
+# define ASAN_DYNAMIC 1
+# else
+# define ASAN_DYNAMIC 0
+# endif
#endif
// All internal functions in asan reside inside the __asan namespace
More information about the llvm-commits
mailing list