Make it possible to enable read barriers at build time.

Bug: 12687968
Change-Id: I26ec55063c2d5ff0181e628c1002bfa609815b29
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk
index cd9ed50..c792536 100644
--- a/build/Android.common_build.mk
+++ b/build/Android.common_build.mk
@@ -221,6 +221,10 @@
   art_cflags += -DART_HEAP_POISONING=1
 endif
 
+ifeq ($(ART_USE_READ_BARRIER),true)
+  art_cflags += -DART_USE_READ_BARRIER=1
+endif
+
 # Cflags for non-debug ART and ART tools.
 art_non_debug_cflags := \
   -O3