Skip to content

Commit

Permalink
build: don't link against liblog on host system
Browse files Browse the repository at this point in the history
Don't link binaries that run on the host system against liblog, it
breaks cross-compiling for android.

Fixes: #7731
PR-URL: #7762
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
bnoordhuis authored and MylesBorins committed Oct 26, 2016
1 parent 924ea0a commit 41e27f6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions common.gypi
Expand Up @@ -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'],
Expand Down

0 comments on commit 41e27f6

Please sign in to comment.