Index: icu.gyp |
diff --git a/icu.gyp b/icu.gyp |
index 3236307b88b252e47722cfeaab3482833b09e1ea..d86003c5350a7295973f9f18aaa139595fd12f53 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++. |