Index: build/android.gypi |
diff --git a/build/android.gypi b/build/android.gypi |
index e5b87198097646058064c22ecfe320f81b02610d..098109eb3ed751307c058079213363e0fe067acb 100644 |
--- a/build/android.gypi |
+++ b/build/android.gypi |
@@ -265,8 +265,15 @@ |
}], # _toolset=="target" |
# Settings for building host targets using the system toolchain. |
['_toolset=="host"', { |
- 'cflags': [ '-pthread' ], |
- 'ldflags': [ '-pthread' ], |
+ 'conditions': [ |
+ ['target_arch=="x64"', { |
+ 'cflags': [ '-m64', '-pthread' ], |
+ 'ldflags': [ '-m64', '-pthread' ], |
+ }, { |
+ 'cflags': [ '-m32', '-pthread' ], |
+ 'ldflags': [ '-m32', '-pthread' ], |
+ }], |
+ ], |
'ldflags!': [ |
'-Wl,-z,noexecstack', |
'-Wl,--gc-sections', |