Skip to content

Commit 03ec4ce

Browse files
sam-githubBridgeAR
authored andcommitted
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 f91778d commit 03ec4ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

node.gypi

+5
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@
291291
[ 'OS=="sunos"', {
292292
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
293293
}],
294+
[ 'OS=="linux"', {
295+
'libraries!': [
296+
'-lrt'
297+
],
298+
}],
294299
[ 'OS in "freebsd linux"', {
295300
'ldflags': [ '-Wl,-z,relro',
296301
'-Wl,-z,now' ]

0 commit comments

Comments
 (0)