Skip to content

Commit

Permalink
gyp: fix build with dtrace support on FreeBSD
Browse files Browse the repository at this point in the history
Fix undefined reference to `gelf_getsym`... and other undefined symbols
from libelf, by adding `-lelf` to linker options on FreeBSD.
  • Loading branch information
indutny committed Jan 21, 2013
1 parent 3d67f89 commit e2592cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@
}],
],
}],
['OS=="freebsd" and node_use_dtrace=="true"', {
'libraries': [ '-lelf' ],
}]
],
}
}

0 comments on commit e2592cc

Please sign in to comment.