diff --git a/deps/brotli/brotli.gyp b/deps/brotli/brotli.gyp index f82660d82c6cfa..f1f487945e5727 100644 --- a/deps/brotli/brotli.gyp +++ b/deps/brotli/brotli.gyp @@ -59,14 +59,15 @@ 'defines': [ 'OS_MACOSX' ] + }, { + 'libraries': [ + '-lm', + ], }], ], 'direct_dependent_settings': { 'include_dirs': [ 'c/include' ] }, - 'libraries': [ - '-lm', - ], 'sources': [ '<@(brotli_sources)', ] diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index fea86b4af7826e..8c8d7d00fd2913 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -220,7 +220,6 @@ '<@(uv_sources_posix)', ], 'link_settings': { - 'libraries': [ '-lm' ], 'conditions': [ ['OS=="solaris"', { 'ldflags': [ '-pthreads' ], @@ -231,6 +230,11 @@ ['OS != "solaris" and OS != "android" and OS != "zos"', { 'ldflags': [ '-pthread' ], }], + ['OS!="mac"', { + 'libraries': [ + '-lm' + ], + }], ], }, 'conditions': [