Skip to content

Commit

Permalink
build: do not link against librt on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Oct 1, 2019
1 parent e2d50ab commit 3bfdb93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@
[ 'OS=="sunos"', {
'ldflags': [ '-Wl,-M,/usr/lib/ld/map.noexstk' ],
}],
[ 'OS=="linux"', {
'libraries!': [
'-lrt'
],
}],
[ 'OS in "freebsd linux"', {
'ldflags': [ '-Wl,-z,relro',
'-Wl,-z,now' ]
Expand Down

0 comments on commit 3bfdb93

Please sign in to comment.