aboutsummaryrefslogtreecommitdiff
path: root/icu.gyp
diff options
context:
space:
mode:
authoryfriedman@chromium.org <yfriedman@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c>2013-05-09 19:03:31 +0000
committeryfriedman@chromium.org <yfriedman@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c>2013-05-09 19:03:31 +0000
commitbdfa65edf5e12d4adf70f8cbb70eb03850c1ec6f (patch)
tree0692338e4f967d67ee13719f555b7c7ce3f1dc74 /icu.gyp
parent966ff0bc6b7e02d22ffd9c0343dfd360db33e4f0 (diff)
downloadicu-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.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/icu.gyp b/icu.gyp
index 3236307..d86003c 100644
--- a/icu.gyp
+++ b/icu.gyp
@@ -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++.