From e2592cc6a3b17b36ba11e2ca191f8ea875161d52 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sun, 20 Jan 2013 19:23:35 +0400 Subject: [PATCH] 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. --- common.gypi | 3 +++ 1 file changed, 3 insertions(+) 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' ], + }] ], } }