From fd3aa9f29f8ec1da287bb0f702757546cecf718a Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 16 Jun 2015 17:16:04 -0700 Subject: [PATCH] Add temporary workaround for boringssl attempting to access the auxillary vector R=abarth@chromium.org Review URL: https://codereview.chromium.org/1185813005. --- shell/ios/main_ios.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shell/ios/main_ios.mm b/shell/ios/main_ios.mm index f0020606e2c..b0eb2042a8a 100644 --- a/shell/ios/main_ios.mm +++ b/shell/ios/main_ios.mm @@ -12,6 +12,16 @@ #include "base/mac/scoped_nsautorelease_pool.h" #include "ui/gl/gl_surface.h" +extern "C" { +// TODO(csg): HACK! boringssl accesses this on Android using a weak symbol +// instead of a global. Till the patch for that lands and propagates to Sky, we +// specify the same here to get workable builds on iOS. This is a hack! Will +// go away. +unsigned long getauxval(unsigned long type) { + return 0; +} +} + static void InitializeLogging() { logging::LoggingSettings settings; settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG;