diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-20 19:23:35 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-21 12:47:26 +0400 |
commit | e2592cc6a3b17b36ba11e2ca191f8ea875161d52 (patch) | |
tree | 31c09f3b066704194a210323a5d1cdf612a8f378 /common.gypi | |
parent | 3d67f895521cf905922d20af9b03e5c73c363868 (diff) | |
download | node-new-e2592cc6a3b17b36ba11e2ca191f8ea875161d52.tar.gz |
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.
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi index e2d52c1d9b..9ecfc4d2a3 100644 --- a/common.gypi +++ b/common.gypi @@ -223,6 +223,9 @@ }], ], }], + ['OS=="freebsd" and node_use_dtrace=="true"', { + 'libraries': [ '-lelf' ], + }] ], } } |