Add -Wl,--no-fatal-warnings to x86 build

libart.so has text relocations. When -Wl,--fatal-warnings is added
to the global LDFLAGS, these text relocations will become a compile
error.

This is a short term workaround until the text relocations can be
fixed properly.

Bug: 11358761
Bug: 11353056
Change-Id: I886d668a1bd6ed326f6552693d8c38c5d5a6b43d
diff --git a/runtime/Android.mk b/runtime/Android.mk
index a0ae4bf..459ca0e 100644
--- a/runtime/Android.mk
+++ b/runtime/Android.mk
@@ -178,6 +178,7 @@
 	runtime_android.cc \
 	thread_android.cc
 
+LIBART_LDFLAGS :=
 ifeq ($(TARGET_ARCH),arm)
 LIBART_TARGET_SRC_FILES += \
 	arch/arm/context_arm.cc.arm \
@@ -195,6 +196,7 @@
 	arch/x86/portable_entrypoints_x86.S \
 	arch/x86/quick_entrypoints_x86.S \
 	arch/x86/thread_x86.cc
+LIBART_LDFLAGS += -Wl,--no-fatal-warnings
 else # TARGET_ARCH != x86
 ifeq ($(TARGET_ARCH),mips)
 LIBART_TARGET_SRC_FILES += \
@@ -304,6 +306,7 @@
   LOCAL_GENERATED_SOURCES += $$(ENUM_OPERATOR_OUT_GEN)
 
   LOCAL_CFLAGS := $(LIBART_CFLAGS)
+  LOCAL_LDFLAGS := $(LIBART_LDFLAGS)
   ifeq ($$(art_target_or_host),target)
     LOCAL_CLANG := $(ART_TARGET_CLANG)
     LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)