mirror of
https://github.com/nodejs/node.git
synced 2025-04-29 14:25:18 +00:00
build: gyp exclude libm linking on macOS
PR-URL: https://github.com/nodejs/node/pull/56901 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
756a24242e
commit
b7ce941f9a
7
deps/brotli/brotli.gyp
vendored
7
deps/brotli/brotli.gyp
vendored
@ -59,14 +59,15 @@
|
|||||||
'defines': [
|
'defines': [
|
||||||
'OS_MACOSX'
|
'OS_MACOSX'
|
||||||
]
|
]
|
||||||
|
}, {
|
||||||
|
'libraries': [
|
||||||
|
'-lm',
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
],
|
],
|
||||||
'direct_dependent_settings': {
|
'direct_dependent_settings': {
|
||||||
'include_dirs': [ 'c/include' ]
|
'include_dirs': [ 'c/include' ]
|
||||||
},
|
},
|
||||||
'libraries': [
|
|
||||||
'-lm',
|
|
||||||
],
|
|
||||||
'sources': [
|
'sources': [
|
||||||
'<@(brotli_sources)',
|
'<@(brotli_sources)',
|
||||||
]
|
]
|
||||||
|
6
deps/uv/uv.gyp
vendored
6
deps/uv/uv.gyp
vendored
@ -220,7 +220,6 @@
|
|||||||
'<@(uv_sources_posix)',
|
'<@(uv_sources_posix)',
|
||||||
],
|
],
|
||||||
'link_settings': {
|
'link_settings': {
|
||||||
'libraries': [ '-lm' ],
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['OS=="solaris"', {
|
['OS=="solaris"', {
|
||||||
'ldflags': [ '-pthreads' ],
|
'ldflags': [ '-pthreads' ],
|
||||||
@ -231,6 +230,11 @@
|
|||||||
['OS != "solaris" and OS != "android" and OS != "zos"', {
|
['OS != "solaris" and OS != "android" and OS != "zos"', {
|
||||||
'ldflags': [ '-pthread' ],
|
'ldflags': [ '-pthread' ],
|
||||||
}],
|
}],
|
||||||
|
['OS!="mac"', {
|
||||||
|
'libraries': [
|
||||||
|
'-lm'
|
||||||
|
],
|
||||||
|
}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
Loading…
Reference in New Issue
Block a user