Skip to content

Commit 7ec558c

Browse files
committed
build: do not link against librt on linux
PR-URL: #29727 Fixes: #27377 Fixes: #29718 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent f3ae3c9 commit 7ec558c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

node.gypi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@
290290
[ 'OS=="sunos"', {
291291
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
292292
}],
293+
[ 'OS=="linux"', {
294+
'libraries!': [
295+
'-lrt'
296+
],
297+
}],
293298
[ 'OS in "freebsd linux"', {
294299
'ldflags': [ '-Wl,-z,relro',
295300
'-Wl,-z,now' ]

0 commit comments

Comments
 (0)