[asan] build asan-rt with -funwind-tables

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147341 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/Makefile.old b/lib/asan/Makefile.old
index 1b28239..a96ff42 100644
--- a/lib/asan/Makefile.old
+++ b/lib/asan/Makefile.old
@@ -262,7 +262,8 @@
 	$(ASAN_CXX) $(GTEST_INCLUDE) -I. -g -c $< -O2 -o $@ -ObjC $(PIE) $(CFLAGS)
 
 $(BIN)/%$(SUFF).o: %.cc $(RTL_HDR) $(MAKEFILE)
-	$(CXX) $(PIE) $(CFLAGS) -fPIC -c -O2 -fno-exceptions -o $@ -g $< -Ithird_party \
+	$(CXX) $(PIE) $(CFLAGS) -fPIC -c -O2 -fno-exceptions -funwind-tables \
+		-o $@ -g $< -Ithird_party \
 		-DASAN_USE_SYSINFO=1 \
 		-DASAN_NEEDS_SEGV=$(ASAN_NEEDS_SEGV) \
 		-DASAN_HAS_EXCEPTIONS=$(ASAN_HAS_EXCEPTIONS) \
diff --git a/make/config.mk b/make/config.mk
index df7c1cc..a826173 100644
--- a/make/config.mk
+++ b/make/config.mk
@@ -42,5 +42,5 @@
 
 ###
 # Common compiler options
-COMMON_CXXFLAGS=-fno-exceptions -fPIC
+COMMON_CXXFLAGS=-fno-exceptions -fPIC -funwind-tables
 COMMON_CFLAGS=-fPIC