Fix Mac build: Mangle the function name according to Mac OS convention.
Credit: loganchien@ is an Mac OS expert and pointed out the fix.
Change-Id: I8250f4c03ac7139e1debe12ff48de389c5cfed22
diff --git a/src/runtime_support_x86.S b/src/runtime_support_x86.S
index cd2625d..e621eff 100644
--- a/src/runtime_support_x86.S
+++ b/src/runtime_support_x86.S
@@ -1,5 +1,12 @@
#include "asm_support.h"
+#if defined(__APPLE__)
+ // Mac OS X mangles the functions with an underscore prefix
+ #define art_deliver_exception_from_code _art_deliver_exception_from_code
+ #define art_proxy_invoke_handler _art_proxy_invoke_handler
+ #define artDeliverExceptionFromCode _artDeliverExceptionFromCode
+#endif
+
.globl art_deliver_exception_from_code
/*
* Called by managed code, saves callee saves and then calls artThrowException