build: do not link against librt on linux
PR-URL: https://github.com/nodejs/node/pull/29727 Fixes: https://github.com/nodejs/node/issues/27377 Fixes: https://github.com/nodejs/node/issues/29718 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
f3ae3c9e3d
commit
7ec558cb24
@ -290,6 +290,11 @@
|
|||||||
[ 'OS=="sunos"', {
|
[ 'OS=="sunos"', {
|
||||||
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
|
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
|
||||||
}],
|
}],
|
||||||
|
[ 'OS=="linux"', {
|
||||||
|
'libraries!': [
|
||||||
|
'-lrt'
|
||||||
|
],
|
||||||
|
}],
|
||||||
[ 'OS in "freebsd linux"', {
|
[ 'OS in "freebsd linux"', {
|
||||||
'ldflags': [ '-Wl,-z,relro',
|
'ldflags': [ '-Wl,-z,relro',
|
||||||
'-Wl,-z,now' ]
|
'-Wl,-z,now' ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user