Browse files

gyp: fix build with dtrace support on FreeBSD

Fix undefined reference to `gelf_getsym`... and other undefined symbols
from libelf, by adding `-lelf` to linker options on FreeBSD.
  • Loading branch information...
1 parent 3d67f89 commit e2592cc6a3b17b36ba11e2ca191f8ea875161d52 @indutny indutny committed Jan 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 common.gypi
View
3 common.gypi
@@ -223,6 +223,9 @@
}],
],
}],
+ ['OS=="freebsd" and node_use_dtrace=="true"', {
+ 'libraries': [ '-lelf' ],
+ }]
],
}
}

0 comments on commit e2592cc

Please sign in to comment.