Browse Source

build: don't link against liblog on host system

Don't link binaries that run on the host system against liblog, it
breaks cross-compiling for android.

Fixes: https://github.com/nodejs/node/issues/7731
PR-URL: https://github.com/nodejs/node/pull/7762
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v4.x
Ben Noordhuis 8 years ago
committed by Myles Borins
parent
commit
41e27f6a6a
  1. 4
      common.gypi

4
common.gypi

@ -294,9 +294,13 @@
], ],
}], }],
['OS=="android"', { ['OS=="android"', {
'target_conditions': [
['_toolset=="target"', {
'defines': [ '_GLIBCXX_USE_C99_MATH' ], 'defines': [ '_GLIBCXX_USE_C99_MATH' ],
'libraries': [ '-llog' ], 'libraries': [ '-llog' ],
}], }],
],
}],
['OS=="mac"', { ['OS=="mac"', {
'defines': ['_DARWIN_USE_64_BIT_INODE=1'], 'defines': ['_DARWIN_USE_64_BIT_INODE=1'],
'xcode_settings': { 'xcode_settings': {

Loading…
Cancel
Save