diff --git a/common.gypi b/common.gypi index 98d6f07048fb97..258cd1603ef54d 100644 --- a/common.gypi +++ b/common.gypi @@ -293,9 +293,13 @@ }], ], }], - [ 'OS=="android"', { - 'defines': ['_GLIBCXX_USE_C99_MATH'], - 'libraries': [ '-llog' ], + ['OS=="android"', { + 'target_conditions': [ + ['_toolset=="target"', { + 'defines': [ '_GLIBCXX_USE_C99_MATH' ], + 'libraries': [ '-llog' ], + }], + ], }], ['OS=="mac"', { 'defines': ['_DARWIN_USE_64_BIT_INODE=1'],