diff options
author | yfriedman@chromium.org <yfriedman@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2013-05-09 19:03:31 +0000 |
---|---|---|
committer | yfriedman@chromium.org <yfriedman@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | 2013-05-09 19:03:31 +0000 |
commit | bdfa65edf5e12d4adf70f8cbb70eb03850c1ec6f (patch) | |
tree | 0692338e4f967d67ee13719f555b7c7ce3f1dc74 /icu.gyp | |
parent | 966ff0bc6b7e02d22ffd9c0343dfd360db33e4f0 (diff) | |
download | icu-bdfa65edf5e12d4adf70f8cbb70eb03850c1ec6f.tar.gz |
Android: Disable 'sincos' optimization to avoid 'icu' link errors.
This started failing with the roll to Android NDK r8e. This only happens
with the component build, presumably because in the regular build this
code is optimized out.
BUG=237460
R=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/14759026
git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@199252 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Diffstat (limited to 'icu.gyp')
-rw-r--r-- | icu.gyp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -319,6 +319,14 @@ '-Wno-return-type-c-linkage', ], }], + ['OS == "android" and clang==0', { + # Disable sincos() optimization to avoid a linker error since + # Android's math library doesn't have sincos(). Either + # -fno-builtin-sin or -fno-builtin-cos works. + 'cflags': [ + '-fno-builtin-sin', + ], + }], ['OS == "android" and use_system_stlport == 1', { # ICU requires RTTI, which is not present in the system's stlport, # so we have to include gabi++. |