Skip to content

Commit b3f2045

Browse files
deepak1556targos
authored andcommitted
build: gyp exclude libm linking on macOS
PR-URL: #56901 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Shelley Vohr <[email protected]>
1 parent e0dd9ae commit b3f2045

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

deps/brotli/brotli.gyp

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@
5959
'defines': [
6060
'OS_MACOSX'
6161
]
62+
}, {
63+
'libraries': [
64+
'-lm',
65+
],
6266
}],
6367
],
6468
'direct_dependent_settings': {
6569
'include_dirs': [ 'c/include' ]
6670
},
67-
'libraries': [
68-
'-lm',
69-
],
7071
'sources': [
7172
'<@(brotli_sources)',
7273
]

deps/uv/uv.gyp

+5-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220
'<@(uv_sources_posix)',
221221
],
222222
'link_settings': {
223-
'libraries': [ '-lm' ],
224223
'conditions': [
225224
['OS=="solaris"', {
226225
'ldflags': [ '-pthreads' ],
@@ -231,6 +230,11 @@
231230
['OS != "solaris" and OS != "android" and OS != "zos"', {
232231
'ldflags': [ '-pthread' ],
233232
}],
233+
['OS!="mac"', {
234+
'libraries': [
235+
'-lm'
236+
],
237+
}],
234238
],
235239
},
236240
'conditions': [

0 commit comments

Comments
 (0)