Set proper flags when cross-compiling with separate toolsets.

Currently, this is only done by standalone-V8 which already sets the correct
flags. However, when ICU is compiled within chromium for V8, we need to set
the correct flags ourselves.

BUG=none
R=bauerb@chromium.org

Review URL: https://codereview.chromium.org/19780003

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu46@212871 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/icu.gyp b/icu.gyp
index 3724fbd..f34c578 100644
--- a/icu.gyp
+++ b/icu.gyp
@@ -25,6 +25,21 @@
           'U_STATIC_IMPLEMENTATION',
         ],
       }],
+      ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
+         or OS=="netbsd" or OS=="mac" or OS=="android") and \
+        (target_arch=="arm" or target_arch=="ia32" or \
+         target_arch=="mipsel")', {
+        'target_conditions': [
+          ['_toolset=="host"', {
+            'cflags': [ '-m32' ],
+            'ldflags': [ '-m32' ],
+            'asflags': [ '-32' ],
+            'xcode_settings': {
+              'ARCHS': [ 'i386' ],
+            },
+          }],
+        ],
+      }],
     ],
     'include_dirs': [
       'source/common',