build: don't link against liblog on host system · nodejs/node@6945aa7

Original file line numberDiff line numberDiff line change

@@ -301,9 +301,13 @@

301301

}],

302302

],

303303

}],

304-

[ 'OS=="android"', {

305-

'defines': ['_GLIBCXX_USE_C99_MATH'],

306-

'libraries': [ '-llog' ],

304+

['OS=="android"', {

305+

'target_conditions': [

306+

['_toolset=="target"', {

307+

'defines': [ '_GLIBCXX_USE_C99_MATH' ],

308+

'libraries': [ '-llog' ],

309+

}],

310+

],

307311

}],

308312

['OS=="mac"', {

309313

'defines': ['_DARWIN_USE_64_BIT_INODE=1'],