Skip to content

Commit 7ec558c

Browse files
committed
build: do not link against librt on linux
PR-URL: nodejs#29727 Fixes: nodejs#27377 Fixes: nodejs#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>
1 parent f3ae3c9 commit 7ec558c

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
@@ -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)